-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
44 lines (41 loc) · 955 Bytes
/
docker-compose.yaml
File metadata and controls
44 lines (41 loc) · 955 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
41
42
43
44
services:
db:
image: postgres:15
restart: always
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_NAME}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USER} -d ${DB_NAME}"]
interval: 5s
timeout: 5s
retries: 10
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- internal
web:
build: .
restart: unless-stopped
env_file: .env
environment:
DATABASE_URL: postgresql://${DB_USER}:${DB_PASSWORD}@db:5432/${DB_NAME}
depends_on:
db:
condition: service_healthy
ports:
- "8000:8000"
volumes:
- qr_codes:/code/static/qr
labels:
- "traefik.enable=true"
- "DomainName=skrati.kset.org"
- "traefik.http.services.skrati-web.loadbalancer.server.port=8000"
networks:
- internal
networks:
internal:
volumes:
postgres_data:
qr_codes: