forked from kamal98ETH/42cursus-ft_transcendence
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
125 lines (118 loc) · 2.54 KB
/
Copy pathdocker-compose.yml
File metadata and controls
125 lines (118 loc) · 2.54 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
124
125
services:
rabbitmq:
build:
context: .
dockerfile: infra/rabbitmq/Dockerfile
container_name: rabbitmq
env_file:
- .env
volumes:
- rabbitmq-data:/var/lib/rabbitmq
networks:
- app-network
restart: unless-stopped
logging:
driver: gelf
options:
gelf-address: "udp://${DOCKER_HOST_IP:-172.17.0.1}:12201"
tag: "rabbitmq"
nginx:
build:
context: .
dockerfile: infra/nginx/Dockerfile
container_name: nginx
ports:
- "1443:443"
depends_on:
- user-service
- game-service
- chat-service
networks:
- app-network
- elk
volumes:
- nginx-logs:/var/log/nginx
restart: unless-stopped
logging:
driver: gelf
options:
gelf-address: "udp://${DOCKER_HOST_IP:-172.17.0.1}:12201"
tag: "nginx"
user-service:
build: ./src/backend/user-service
container_name: user-service
env_file:
- .env
volumes:
- user-public:/app/public
networks:
- app-network
- monitoring
depends_on:
- rabbitmq
restart: unless-stopped
logging:
driver: gelf
options:
gelf-address: "udp://${DOCKER_HOST_IP:-172.17.0.1}:12201"
tag: "user-service"
game-service:
build: ./src/backend/game-service
container_name: game-service
env_file:
- .env
networks:
- app-network
depends_on:
- rabbitmq
restart: unless-stopped
logging:
driver: gelf
options:
gelf-address: "udp://${DOCKER_HOST_IP:-172.17.0.1}:12201"
tag: "game-service"
chat-service:
build: ./src/backend/chat-service
container_name: chat-service
env_file:
- .env
volumes:
- chat-data:/app/data
networks:
- app-network
restart: unless-stopped
logging:
driver: gelf
options:
gelf-address: "udp://${DOCKER_HOST_IP:-172.17.0.1}:12201"
tag: "chat-service"
blockchain-service:
build: ./src/backend/blockchain-service
container_name: blockchain-service
env_file:
- .env
networks:
- app-network
depends_on:
- rabbitmq
restart: unless-stopped
logging:
driver: gelf
options:
gelf-address: "udp://${DOCKER_HOST_IP:-172.17.0.1}:12201"
tag: "blockchain-service"
volumes:
rabbitmq-data:
nginx-logs:
user-public:
chat-data:
networks:
app-network:
external: true
name: network
elk:
external: true
name: logging
monitoring:
external: true
name: monitoring