-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (55 loc) · 1.04 KB
/
docker-compose.yml
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
version: "3.7"
services:
redis:
image: redis:alpine
env_file: .env
depends_on:
- sockets0
- sockets1
expose:
- $REDISPORT
networks:
- streamLocal
sockets0:
env_file: .env
build:
context: ./sockets
dockerfile: Dockerfile
environment:
- SOCKETPORT=$SOCKETPORT
- SERVER=0
image: sockets-test-count
container_name: socket-0
restart: unless-stopped
expose:
- $SOCKETPORT
networks:
- streamLocal
sockets1:
env_file: .env
environment:
- SOCKETPORT=$SOCKETPORT
- SERVER=1
image: sockets-test-count
container_name: socket-1
restart: unless-stopped
expose:
- $SOCKETPORT
networks:
- streamLocal
webserver:
image: nginx:1.17.10
container_name: nginx
depends_on:
- sockets0
- sockets1
volumes:
- ./nginx/nodes/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/www:/var/www/html
ports:
- 80:80
networks:
- streamLocal
networks:
streamLocal:
driver: bridge