-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (42 loc) · 1.06 KB
/
Copy pathdocker-compose.yml
File metadata and controls
45 lines (42 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: fuelfinder
POSTGRES_PASSWORD: fuelfinder
POSTGRES_DB: fuelfinder
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U fuelfinder"]
interval: 5s
timeout: 5s
retries: 5
scraper:
build: .
depends_on:
postgres:
condition: service_healthy
environment:
DATABASE_URL: postgresql://fuelfinder:fuelfinder@postgres:5432/fuelfinder
FUEL_API_ID: ${FUEL_API_ID}
FUEL_API_SECRET: ${FUEL_API_SECRET}
SKIP_S3: ${SKIP_S3:-true}
S3_BUCKET: ${S3_BUCKET:-fuel-finder-raw}
AWS_REGION: ${AWS_REGION:-eu-west-1}
web:
build:
context: .
dockerfile: web/Dockerfile
depends_on:
postgres:
condition: service_healthy
ports:
- "8080:8000"
environment:
DATABASE_URL: postgresql://fuelfinder:fuelfinder@postgres:5432/fuelfinder
AUTH_ENABLED: ${AUTH_ENABLED:-false}
volumes:
pgdata: