generated from Arquisoft/wiq_0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
154 lines (144 loc) · 3.43 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
version: '3'
services:
mongodb:
container_name: mongodb
image: mongo
profiles: ["dev", "prod"]
volumes:
- mongodb_data:/data/db
ports:
- "27017:27017"
networks:
- mynetwork
restart: always
mariadb:
container_name: mariadb
image: mariadb
profiles: ["dev", "prod"]
volumes:
- mariadb_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: R#9aLp2sWu6y
MYSQL_DATABASE: base_de_datos_de_usuarios
ports:
- "3306:3306"
networks:
- mynetwork
restart: always
users:
container_name: users
image: ghcr.io/arquisoft/wiq_es04a/users:latest
profiles: ["dev", "prod"]
build: ./users
depends_on:
- mariadb
ports:
- "8001:8001"
networks:
- mynetwork
environment:
DATABASE_URL: mariadb:3306/userdb
restart: always
questions:
container_name: questions
image: ghcr.io/arquisoft/wiq_es04a/questions:latest
profiles: ["dev", "prod"]
build: ./questions
depends_on:
- mongodb
ports:
- "8010:8010"
networks:
- mynetwork
environment:
DATABASE_URI: mongodb://mongodb:27017/questionDB
TEST_DATABASE_URI: mongodb://mongodb:27017/test
restart: always
gatewayservice:
container_name: gatewayservice
image: ghcr.io/arquisoft/wiq_es04a/gatewayservice:latest
profiles: ["dev", "prod"]
build: ./gatewayservice
depends_on:
- users
- questions
ports:
- "8000:8000"
networks:
- mynetwork
environment:
USER_SERVICE_URL: http://users:8001
QUESTION_SERVICE_URL: http://questions:8010
restart: always
webapp:
container_name: webapp
image: ghcr.io/arquisoft/wiq_es04a/webapp:latest
profiles: ["dev", "prod"]
build: ./webapp
depends_on:
- gatewayservice
- multiplayer
ports:
- "3000:3000"
networks:
- mynetwork
environment:
REACT_APP_API_ENDPOINT: http://gatewayservice:8000
REACT_APP_MULTIPLAYER_ENDPOINT: http://multiplayer:5010
restart: always
multiplayer:
container_name: multiplayer
image: ghcr.io/arquisoft/wiq_es04a/multiplayer:latest
profiles: ["dev", "prod"]
build: ./multiplayer
depends_on:
- gatewayservice
ports:
- "5010:5010"
networks:
- mynetwork
environment:
WEBAPP_ENDPOINT: http://webapp:3000
GATEWAY_SERVICE_ENDPOINT: http://gatewayservice:8000
restart: always
prometheus:
image: prom/prometheus
container_name: prometheus
profiles: ["dev", "prod"]
networks:
- mynetwork
volumes:
- ./gatewayservice/monitoring/prometheus:/etc/prometheus
- prometheus_data:/prometheus
ports:
- "9090:9090"
depends_on:
- gatewayservice
restart: always
grafana:
image: grafana/grafana
container_name: grafana
profiles: ["dev", "prod"]
networks:
- mynetwork
volumes:
- grafana_data:/var/lib/grafana
- ./gatewayservice/monitoring/grafana/provisioning:/etc/grafana/provisioning
environment:
- GF_SERVER_HTTP_PORT=9091
- GF_AUTH_DISABLE_LOGIN_FORM=true
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
ports:
- "9091:9091"
depends_on:
- prometheus
restart: always
volumes:
mariadb_data:
mongodb_data:
prometheus_data:
grafana_data:
networks:
mynetwork:
driver: bridge