-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose-dev.yml
97 lines (92 loc) · 2.16 KB
/
docker-compose-dev.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
services:
django:
container_name: django-container
build:
context: ./backend
dockerfile: Dockerfile-dev
image: django
volumes:
- ./backend:/code
networks:
- Transcendence
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_started
ports:
- "8002:8002"
- "8089:8089"
env_file:
- .env
restart: on-failure
nginx:
container_name: nginx-container
build:
context: ./nginx
dockerfile: Dockerfile
image: nginx
volumes:
- ./backend:/code
ports:
- "443:443"
- "80:80"
networks:
- Transcendence
depends_on:
- django
env_file:
- .env
restart: on-failure
logging:
driver: none
postgres:
container_name: postgres-container
build:
context: ./postgres
dockerfile: Dockerfile
image: postgres
volumes:
- ./data:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- Transcendence
env_file:
- .env
healthcheck:
test: ["CMD-SHELL", "pg_isready -U anaraujo"]
interval: 3s
timeout: 5s
retries: 5
restart: on-failure
pgadmin4:
container_name: pgadmin4-container
image: pgadmin4
build:
context: ./pgadmin
dockerfile: Dockerfile
restart: always
env_file:
- .env
networks:
- Transcendence
ports:
- "8080:8080"
depends_on:
- postgres
redis:
container_name: redis-container
image: redis
build:
context: ./redis
dockerfile: Dockerfile
restart: always
networks:
- Transcendence
ports:
- "6380:6380"
networks:
Transcendence:
name: Transcendence
driver: bridge