-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
66 lines (62 loc) · 1.38 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
61
62
63
64
65
66
version: '3'
services:
web1:
build:
context: ./server
environment:
- PORT=3000
ports:
- "3000:3000"
volumes:
- ./server/app/index.js:/server/app/index.js
- ./server/app/views:/server/app/views
- ./server/app/public:/server/app/public
- ./server/app/models:/server/app/models
web2:
build:
context: ./server
environment:
- PORT=3001
ports:
- "3001:3001"
volumes:
- ./server/app/index.js:/server/app/index.js
- ./server/app/views:/server/app/views
- ./server/app/public:/server/app/public
- ./server/app/models:/server/app/models
mariadb:
image: "mariadb"
container_name: "mariadb"
working_dir: "/docker-entrypoint-initdb.d"
volumes:
- ./mariadb/:/docker-entrypoint-initdb.d
environment:
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: 1
restart:
"always"
nginx:
build:
context: ./nginx
ports:
- "80:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/nginx_cache:/var/cache/nginx
depends_on:
- web1
- web2
- mariadb
locust:
build:
context: ./locust_nginx
container_name: "locust"
working_dir: "/usr/src/app"
ports:
- "8089:8089"
volumes:
- ./locust_nginx:/usr/src/app
depends_on:
- web1
- web2
- mariadb
- nginx