-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
104 lines (98 loc) · 2.35 KB
/
Copy pathdocker-compose.yml
File metadata and controls
104 lines (98 loc) · 2.35 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
version: "3.3"
services:
users:
build: ./users
container_name: users
image: ghcr.io/arquisoft/yovi_es1a-users:latest
restart: unless-stopped
environment:
- RUST_API_URL=http://gamey:4000
- NODE_ENV=${NODE_ENV:-development}
- ALLOWED_ORIGINS=${ALLOWED_ORIGINS:-http://localhost:5173,http://localhost}
networks:
- monitor-net
env_file:
- ./users/.env
volumes:
- ./documentations:/app/documentations
webapp:
build:
context: ./webapp
args:
- VITE_API_URL=/api
- VITE_API_ENDPOINT=/api/gamey
- VITE_MULTIPLAYER_URL=/
container_name: webapp
image: ghcr.io/arquisoft/yovi_es1a-webapp:latest
restart: unless-stopped
depends_on:
- users
networks:
- monitor-net
gamey:
build: ./gamey
container_name: gamey
image: ghcr.io/arquisoft/yovi_es1a-gamey:latest
restart: unless-stopped
environment:
- PORT=4000
ports:
- "3002:4000"
networks:
- monitor-net
multiplayer:
build:
context: ./multiplayer
container_name: multiplayer
image: ghcr.io/arquisoft/yovi_es1a-multiplayer:latest
networks:
- monitor-net
environment:
- PORT=5000
- USERS_API_URL=http://users:3000
- NODE_TLS_REJECT_UNAUTHORIZED=0
- PRODUCTION_URL=https://20.199.88.71
- WEBAPP_URL=https://20.199.88.71
restart: unless-stopped
prometheus:
image: prom/prometheus
container_name: prometheus
restart: unless-stopped
ports:
- "9090:9090"
volumes:
- ./users/monitoring/prometheus:/etc/prometheus
networks:
- monitor-net
nginx:
image: nginx:alpine
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./certs/cert.pem:/etc/nginx/certs/cert.pem:ro
- ./certs/key.pem:/etc/nginx/certs/key.pem:ro
depends_on:
- gamey
- users
- webapp
- multiplayer
networks:
- monitor-net
grafana:
image: grafana/grafana
container_name: grafana
restart: unless-stopped
ports:
- "9091:3000"
volumes:
- ./users/monitoring/grafana/provisioning:/etc/grafana/provisioning
networks:
- monitor-net
networks:
monitor-net:
driver: bridge
volumes:
mongodb-data: