forked from ValeriiSyrov/scaling_socketio_example
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
37 lines (36 loc) · 811 Bytes
/
docker-compose.yaml
File metadata and controls
37 lines (36 loc) · 811 Bytes
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
version: '3.7'
services:
socket-node1:
build: # build a image from a dockerfile
context: .
dockerfile: Dockerfile
working_dir: /home/multiple_socket
environment:
- APPID=1111
- PORT=3001
volumes:
- .:/home/multiple_socket
container_name: socket-node1
command: npm run start
socket-node2:
build: # build a image from a dockerfile
context: .
dockerfile: Dockerfile
working_dir: /home/multiple_socket
environment:
- APPID=2222
- PORT=3002
volumes:
- .:/home/multiple_socket
container_name: socket-node2
command: npm run start
nginx:
build:
context: ./nginx
depends_on:
- socket-node1
- socket-node2
ports:
- 3005:3005
redis:
image: redis