-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
123 lines (114 loc) · 2.45 KB
/
docker-compose.yml
File metadata and controls
123 lines (114 loc) · 2.45 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
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
services:
nginx:
image: nginx:stable-alpine
container_name: nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d:ro
- ./nginx/certs:/etc/nginx/certs:ro
depends_on:
- webapp
- gateway
- botapi
networks:
- monitor-net
users:
build: ./users
container_name: users
image: ghcr.io/arquisoft/yovi_en2c-users:latest
environment:
- MONGODB_URI=${MONGODB_URI}
expose:
- "3000"
networks:
- monitor-net
authentication:
build: ./authentication
container_name: authentication
image: ghcr.io/arquisoft/yovi_en2c-authentication:latest
environment:
- JWT_SECRET=${JWT_SECRET}
- JWT_EXPIRES=${JWT_EXPIRES}
- USERS_SERVICE_URL=http://users:3000
- PORT=5000
depends_on:
- users
expose:
- "5000"
networks:
- monitor-net
webapp:
build:
context: ./webapp
args:
- VITE_API_URL=/api
container_name: webapp
image: ghcr.io/arquisoft/yovi_en2c-webapp:latest
expose:
- "80"
depends_on:
- gateway
networks:
- monitor-net
gateway:
build: ./gateway
container_name: gateway
image: ghcr.io/arquisoft/yovi_en2c-gateway:latest
environment:
- AUTH_BASE_URL=http://authentication:5000
- GAMEY_BASE_URL=http://gamey:4000
- PORT=8080
depends_on:
- authentication
- gamey
expose:
- "8080"
networks:
- monitor-net
botapi:
build: ./botapi
container_name: botapi
image: ghcr.io/arquisoft/yovi_en2c-botapi:latest
environment:
- GAMEY_BASE_URL=http://gamey:4000
- GAMEY_API_VERSION=v1
- PORT=4001
depends_on:
- gamey
expose:
- "4001"
networks:
- monitor-net
gamey:
build: ./gamey
container_name: gamey
image: ghcr.io/arquisoft/yovi_en2c-gamey:latest
expose:
- "4000"
networks:
- monitor-net
prometheus:
image: prom/prometheus
container_name: prometheus
ports:
- "9090:9090"
volumes:
- ./users/monitoring/prometheus:/etc/prometheus
networks:
- monitor-net
grafana:
image: grafana/grafana
container_name: grafana
ports:
- "9091:3000"
volumes:
- ./users/monitoring/grafana/provisioning:/etc/grafana/provisioning
depends_on:
- prometheus
networks:
- monitor-net
networks:
monitor-net:
driver: bridge