-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (44 loc) · 1.24 KB
/
docker-compose.yml
File metadata and controls
50 lines (44 loc) · 1.24 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
version: '3'
services:
balancer:
image: nginx
ports:
- 8000:80
volumes:
- ./docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
server_1:
working_dir: /app
image: node
volumes:
- ./app:/app
command: bash -c "npm i && npm start '/socket/'"
server_2:
working_dir: /app
image: node
volumes:
- ./app:/app
command: bash -c "npm i && npm start '/socket/'"
server_polling_1:
working_dir: /app
image: node
volumes:
- ./app:/app
command: bash -c "npm i && npm start '/polling/' 'cronEnabled'"
server_polling_2:
working_dir: /app
image: node
volumes:
- ./app:/app
command: bash -c "npm i && npm start '/polling/'"
redis:
image: 'bitnami/redis:latest'
environment:
- ALLOW_EMPTY_PASSWORD=yes
mysql_database:
image: mariadb:latest
command: --default-authentication-plugin=mysql_native_password
restart: always
volumes:
- ./docker/database.sql:/docker-entrypoint-initdb.d/database.sql
environment:
MYSQL_ROOT_PASSWORD: testRootPassword