-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
62 lines (59 loc) · 1.4 KB
/
docker-compose.yaml
File metadata and controls
62 lines (59 loc) · 1.4 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
services:
backend:
depends_on:
- db
image: antonicz/eproba:latest
restart: always
volumes:
- static_volume:/home/app/web/staticfiles
- backup_volume:/home/app/web/backups
- secrets_volume:/home/app/web/secrets
networks:
- app-network
expose:
- 8000
env_file:
- ./stack.env
db:
image: postgres:16
restart: always
volumes:
- postgres_data:/var/lib/postgresql/data/
networks:
- app-network
environment:
- POSTGRES_USER=${DATABASE_USER}
- POSTGRES_PASSWORD=${DATABASE_PASSWORD}
- POSTGRES_DB=${DATABASE_NAME}
- TZ=${TZ}
- PGTZ=${TZ}
nginx:
depends_on:
- backend
image: nginx:1.27.4-alpine
restart: always
volumes:
- static_volume:/home/app/web/staticfiles
- nginx_conf_volume:/etc/nginx/conf.d
networks:
- app-network
- reverse-proxy_default
environment:
- TZ=${TZ}
labels:
- "traefik.enable=true"
- "traefik.http.routers.eproba.rule=Host(`eproba.zhr.pl`)"
- "traefik.http.routers.eproba.entrypoints=web"
- "traefik.http.services.eproba.loadbalancer.server.port=80"
- "traefik.docker.network=reverse-proxy_default"
volumes:
postgres_data:
static_volume:
backup_volume:
secrets_volume:
nginx_conf_volume:
networks:
app-network:
driver: bridge
reverse-proxy_default:
external: true