-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
113 lines (106 loc) · 2.36 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
services:
node-app:
container_name: node-fmecg
build:
dockerfile: Dockerfile
context: ./server-web
profiles: ["backend"]
volumes:
- ./server-web/:/server/
- /server/node_modules
depends_on:
- database
env_file: ./server-web/.env.docker
networks:
- network-fmecg
react-app:
container_name: react-fmecg
build:
dockerfile: Dockerfile.dev
context: ./frontend_web
profiles: ["frontend"]
volumes:
- ./frontend_web:/web/
- /web/node_modules
depends_on:
- database
networks:
- network-fmecg
bin-login:
container_name: bin-fmecg
build:
dockerfile: Dockerfile
context: ./frontend_web/bin
profiles: ["frontend"]
env_file: ./frontend_web/bin/.env.docker
volumes:
- ./frontend_web/bin:/bin_login/
- /bin_login/node_modules
depends_on:
- database
networks:
- network-fmecg
proxy:
container_name: proxy-fmecg
build:
dockerfile: Dockerfile
context: ./proxy
profiles: ["backend", "frontend"]
restart: unless-stopped
depends_on:
- node-app
# - react-app
- chat-app
# - bin-login
ports:
- 80:80
volumes:
- ./proxy/default.conf:/etc/nginx/conf.d/default.conf
networks:
- network-fmecg
database:
image: mysql:8.0
container_name: database-fmecg
restart: unless-stopped
profiles: ["backend"]
ports:
- 3306:3306
expose:
- 3306
env_file: ./server-web/.env.docker
volumes:
- ./docker/data/mysql:/var/lib/mysql
networks:
- network-fmecg
chat-app:
container_name: chat-fmecg
build:
dockerfile: Dockerfile.dev
context: ./server_chat
profiles: ["backend"]
# command: iex -S mix phx.server
restart: unless-stopped
depends_on:
- database-chat
env_file: ./server_chat/.env.docker
volumes:
- ./server_chat/:/app/
networks:
- network-fmecg
database-chat:
image: postgres:12.19
container_name: database-chat-fmecg
profiles: ["backend"]
ports:
- 5432:5432
expose:
- 5432
restart: unless-stopped
env_file: ./server_chat/.env.docker
volumes:
- ./docker/data/postgresql:/var/lib/postgresql/data
networks:
- network-fmecg
networks:
network-fmecg:
driver: bridge