-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (37 loc) · 978 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
40 lines (37 loc) · 978 Bytes
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
# docker-compose.yml
version: '3.9'
services:
app:
image: ${IMAGE_NAME:-ghcr.io/example/blitzableiter:latest}
container_name: blitzableiter
env_file:
- .env
environment:
APP_SERVICE_NAME: blitzableiter
APP_ENV: prod
APP_LOG_LEVEL: INFO
APP_HEALTH_FILE: /tmp/app-health.json
APP_CONFIG_PATH: /app/config.yml
BLITZ_DATABASE_URL: ${BLITZ_DATABASE_URL:-postgresql://blitz:blitz@db:5432/blitz}
volumes:
- ./config.yml:/app/config.yml:ro
- ./geo:/data/geo:ro
depends_on:
- db
restart: unless-stopped
healthcheck:
test: ['CMD', 'poetry', 'run', 'app-health']
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
db:
image: postgres:16-alpine
environment:
POSTGRES_DB: blitz
POSTGRES_USER: blitz
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-blitz}
volumes:
- postgres_data:/var/lib/postgresql/data
volumes:
postgres_data: