-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
54 lines (50 loc) · 1.08 KB
/
docker-compose.yml
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
services:
django:
container_name: django
build: ./services/django
expose:
- "8000"
# command: ["python", "manage.py", "runserver", "0.0.0.0:8000"]
volumes:
- ./services/django/app:/code
networks:
transcendence:
env_file:
- .env
restart: unless-stopped
depends_on:
db:
condition: service_healthy
db:
container_name: postgres
image: postgres:alpine3.20
volumes:
- postgres_data:/var/lib/postgresql/data/
networks:
- transcendence
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER}"]
interval: 4s
timeout: 2s
retries: 5
start_period: 2s
env_file: .env
restart: unless-stopped
nginx:
container_name: nginx
build: services/nginx
volumes:
- ./services/nginx/conf:/etc/nginx/conf.d
- ./services/django/app:/var/www/html
networks:
transcendence:
ports:
- "1443:443"
- "1080:80"
depends_on:
- django
restart: unless-stopped
networks:
transcendence:
volumes:
postgres_data: