-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
117 lines (109 loc) · 2.57 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
117 lines (109 loc) · 2.57 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
services:
rabbitmq:
build:
context: .
dockerfile: infra/rabbitmq/Dockerfile
container_name: rabbitmq-service
env_file:
- .env
ports:
- "5671:5671"
volumes:
- rabbitmq_data:/var/lib/rabbitmq
networks:
- app-network
restart: unless-stopped
nginx:
build:
context: .
dockerfile: infra/nginx/Dockerfile
container_name: nginx
ports:
- "8080:80"
- "1443:443"
depends_on:
- user-service
- game-service
- chat-service
networks:
- app-network
volumes:
- nginx-logs:/var/log/nginx
restart: unless-stopped
user-service:
image: node:20-alpine
container_name: user-service
ports:
- "3001:3001"
working_dir: /app
command: sh -c "rm -rf /app/node_modules/.prisma 2>/dev/null; npm install && npx prisma generate && npx prisma migrate deploy && npm run dev"
env_file:
- .env
volumes:
- ./src/backend/user-service:/app
- user-service-modules:/app/node_modules
- user-data:/app/data
- user-uploads:/app/public/uploads
networks:
- app-network
depends_on:
- rabbitmq
restart: unless-stopped
game-service:
image: node:20-alpine
container_name: game-service
working_dir: /app
command: sh -c "npm install && npm run dev"
env_file:
- .env
volumes:
- ./src/backend/game-service:/app
- game-service-modules:/app/node_modules
networks:
- app-network
depends_on:
- rabbitmq
restart: unless-stopped
chat-service:
image: node:20-alpine
container_name: chat-service
working_dir: /app
command: sh -c "npm install && npx prisma generate && npx prisma migrate deploy && npm run dev"
env_file:
- .env
volumes:
- ./src/backend/chat-service:/app
- chat-service-modules:/app/node_modules
- chat-data:/app/data
networks:
- app-network
restart: unless-stopped
blockchain-service:
image: node:20-alpine
container_name: blockchain-service
working_dir: /app
command: sh -c "npm install && npm run dev"
env_file:
- .env
volumes:
- ./src/backend/blockchain-service:/app
- blockchain-service-modules:/app/node_modules
networks:
- app-network
depends_on:
- rabbitmq
restart: unless-stopped
volumes:
nginx-logs:
user-data:
user-uploads:
chat-data:
user-service-modules:
game-service-modules:
chat-service-modules:
blockchain-service-modules:
rabbitmq_data:
networks:
app-network:
driver: bridge
name: network