-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
132 lines (127 loc) · 2.41 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
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
services:
# Solicitud
## Db solicitud
db_solicitud:
image: mysql:5.7
restart: always
ports:
- "3019:3306"
expose:
- "3019"
volumes:
- "./sql/solicitud:/docker-entrypoint-initdb.d"
env_file:
- ./Solicitud/process.env
networks:
- emprenred
container_name: db_solicitud
## Microservicio solicitud
solicitud:
tty: true
build: ./Solicitud/.
container_name: solicitud
ports:
- "3009:3009"
expose:
- "3009"
links:
- db_solicitud
depends_on:
- db_solicitud
command: node src/index.js
env_file:
- ./Solicitud/process.env
volumes:
- "./Solicitud:/Backend"
networks:
- emprenred
# Experto
## Db experto
db_experto:
image: mysql:5.7
restart: always
ports:
- "3018:3306"
expose:
- "3018"
volumes:
- "./sql/experto:/docker-entrypoint-initdb.d"
env_file:
- ./Experto/process.env
networks:
- emprenred
container_name: db_experto
## Microservicio experto
experto:
tty: true
build: ./Experto/.
container_name: experto
ports:
- "3008:3008"
expose:
- "3008"
links:
- db_experto
depends_on:
- db_experto
command: node src/index.js
env_file:
- ./Experto/process.env
volumes:
- "./Experto:/Backend"
networks:
- emprenred
# Micronegocio
## Db micronegocio
db_micronegocio:
image: mysql:5.7
restart: always
ports:
- "3017:3306"
expose:
- "3017"
volumes:
- "./sql/micronegocio:/docker-entrypoint-initdb.d"
env_file:
- ./Micronegocio/process.env
networks:
- emprenred
container_name: db_micronegocio
## Microservicio experto
micronegocio:
tty: true
build: ./Micronegocio/.
container_name: micronegocio
ports:
- "3007:3007"
expose:
- "3007"
links:
- db_micronegocio
depends_on:
- db_micronegocio
command: node src/index.js
env_file:
- ./Micronegocio/process.env
volumes:
- "./Micronegocio:/Backend"
networks:
- emprenred
#Haproxy
haproxy:
build: ./haproxy
links:
- web1
- web2
ports:
- "5080:80"
web1:
build: ./Frontend
volumes:
- ./Frontend/html:/var/www/html/
web2:
build: ./Frontend
volumes:
- ./Frontend/html:/var/www/html/
networks:
emprenred: