-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
47 lines (45 loc) · 836 Bytes
/
compose.yaml
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
services:
server:
image: eicheesel
volumes:
- static_files:/app/staticfiles
expose:
- 8000
env_file:
- .env
depends_on:
db:
condition: service_healthy
networks:
- django_docker_net
db:
image: postgres:16.1
restart: always
expose:
- 5432
healthcheck:
test: [ "CMD", "pg_isready" ]
interval: 10s
timeout: 5s
retries: 5
env_file:
- db.env
networks:
- django_docker_net
nginx:
image: nginx:1.25
ports:
- "8080:80"
volumes:
- ./nginx/custom-nginx.conf:/etc/nginx/conf.d/default.conf
- static_files:/app/staticfiles
depends_on:
- server
networks:
- django_docker_net
networks:
django_docker_net:
driver: bridge
volumes:
db-data:
static_files: