-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
92 lines (84 loc) · 2.04 KB
/
Copy pathdocker-compose.yml
File metadata and controls
92 lines (84 loc) · 2.04 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
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
version: '3.9'
services:
djangoapp:
container_name: djangoapp
build:
context: .
ports:
- 8000:8000
networks:
- minha_rede
volumes:
- ./djangoapp:/djangoapp
- ./data/web/static:/data/web/static/
- ./data/web/media:/data/web/media/
env_file:
- ./dotenv_files/.env
depends_on:
- psql
djangoappcloneone:
container_name: djangoappcloneone
build:
context: ./djangoapp_api_clone
ports:
- 8001:8001
networks:
- minha_rede
volumes:
- ./djangoapp_api_clone/djangoapp:/djangoapp
- ./djangoapp_api_clone/data/web/static:/data/web/static/
- ./djangoapp_api_clone/data/web/media:/data/web/media/
env_file:
- ./djangoapp_api_clone/dotenv_files/.env
depends_on:
- psql
environment:
- PORT=8001
djangoappclonetwo:
container_name: djangoappclonetwo
build:
context: ./djangoapp_api_clone
ports:
- 8002:8002
networks:
- minha_rede
volumes:
- ./djangoapp_api_clone/djangoapp:/djangoapp
- ./djangoapp_api_clone/data/web/static:/data/web/static/
- ./djangoapp_api_clone/data/web/media:/data/web/media/
env_file:
- ./djangoapp_api_clone/dotenv_files/.env
depends_on:
- psql
environment:
- PORT=8002
djangoappclonethree:
container_name: djangoappclonethree
build:
context: ./djangoapp_api_clone
ports:
- 8003:8003
networks:
- minha_rede
volumes:
- ./djangoapp_api_clone/djangoapp:/djangoapp
- ./djangoapp_api_clone/data/web/static:/data/web/static/
- ./djangoapp_api_clone/data/web/media:/data/web/media/
env_file:
- ./djangoapp_api_clone/dotenv_files/.env
depends_on:
- psql
environment:
- PORT=8003
psql:
container_name: psql
image: postgres:13-alpine
networks:
- minha_rede
volumes:
- ./data/postgres/data:/var/lib/postgresql/data/
env_file:
- ./dotenv_files/.env
networks:
minha_rede:
driver: bridge