generated from Arquisoft/wiq_0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
124 lines (115 loc) · 3.09 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
version: '3'
services:
mongodb:
container_name: mongodb-${teamname:-wiq_es05a}
image: mongo
profiles: ["dev", "prod"]
volumes:
- mongodb_data:/data/db
ports:
- "27017:27017"
networks:
- mynetwork
questionservice:
container_name: questionservice-${teamname:-wiq_es05a}
image: ghcr.io/arquisoft/wiq_es05a/questionservice:latest
profiles: ["dev", "prod"]
build: ./questionservice
ports:
- "8003:8003"
environment:
- ACCESS_CONTROL_ALLOW_ORIGIN=http://webapp:3000
- ACCESS_CONTROL_ALLOW_ORIGIN=http://localhost:3000/game
networks:
- mynetwork
authservice:
container_name: authservice-${teamname:-wiq_es05a}
image: ghcr.io/arquisoft/wiq_es05a/authservice:latest
profiles: ["dev", "prod"]
build: ./userservice/authservice
depends_on:
- mongodb
ports:
- "8002:8002"
networks:
- mynetwork
environment:
MONGODB_URI: mongodb://mongodb:27017/userdb
userservice:
container_name: userservice-${teamname:-wiq_es05a}
image: ghcr.io/arquisoft/wiq_es05a/userservice:latest
profiles: ["dev", "prod"]
build: ./userservice/userservice
depends_on:
- mongodb
ports:
- "8001:8001"
networks:
- mynetwork
environment:
MONGODB_URI: mongodb://mongodb:27017/userdb
gatewayservice:
container_name: gatewayservice-${teamname:-wiq_es05a}
image: ghcr.io/arquisoft/wiq_es05a/gatewayservice:latest
profiles: ["dev", "prod"]
build: ./gatewayservice
depends_on:
- mongodb
- userservice
- authservice
- questionservice
ports:
- "8000:8000"
networks:
- mynetwork
environment:
AUTH_SERVICE_URL: http://authservice:8002
USER_SERVICE_URL: http://userservice:8001
QUESTION_SERVICE_URL: http://questionservice:8003
webapp:
container_name: webapp-${teamname:-wiq_es05a}
image: ghcr.io/arquisoft/wiq_es05a/webapp:latest
profiles: ["dev", "prod"]
build: ./webapp
depends_on:
- gatewayservice
ports:
- "3000:3000"
prometheus:
image: ghcr.io/arquisoft/wiq_es05a/prometheus:latest
container_name: prometheus-${teamname:-wiq_es05a}
build: ./monitoring/prometheus
profiles: ["dev", "prod"]
networks:
- mynetwork
volumes:
- prometheus_data:/prometheus
ports:
- "9090:9090"
depends_on:
- gatewayservice
grafana:
image: ghcr.io/arquisoft/wiq_es05a/grafana:latest
container_name: grafana-${teamname:-wiq_es05a}
build: ./monitoring/grafana
profiles: ["dev", "prod"]
networks:
- mynetwork
volumes:
- grafana_data:/var/lib/grafana
environment:
- GF_SERVER_HTTP_PORT=9091
- GF_SECURITY_ADMIN_USER=${GF_SECURITY_ADMIN_USER:-admin}
- GF_SECURITY_ADMIN_PASSWORD=${GF_SECURITY_ADMIN_PASSWORD:-changeme}
- GF_SERVER_SERVE_FROM_SUB_PATH=${GF_SERVER_SERVE_FROM_SUB_PATH:-true}
ports:
- "9091:9091"
depends_on:
- prometheus
volumes:
mongodb_data:
prometheus_data:
grafana_data:
networks:
mynetwork:
driver: bridge