-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
78 lines (70 loc) · 1.37 KB
/
docker-compose.yaml
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
version: "3.9"
services:
yandex-tank:
image: direvius/yandex-tank
container_name: tank
entrypoint: /bin/bash
volumes:
- ./yandex_tank:/var/loadtest
stdin_open: true
tty: true
networks:
- priv_net
nginx:
image: nginx:latest
container_name: nginx
restart: unless-stopped
ports:
- "80:80"
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
- ./nginx/logs:/var/log/nginx
networks:
- priv_net
goaccess:
image: allinurl/goaccess
container_name: goaccess
restart: unless-stopped
ports:
- "7890:7890"
volumes:
- ./nginx/logs:/logs
command: "/logs/access.log -o /logs/report.html --log-format=COMBINED --real-time-html"
networks:
- priv_net
# Python App (3 instances)
app1:
build: ./app
container_name: app1
hostname: app1
restart: unless-stopped
ports:
- "5001:5000"
volumes:
- ./app:/app
networks:
- priv_net
app2:
build: ./app
container_name: app2
hostname: app2
restart: unless-stopped
ports:
- "5002:5000"
volumes:
- ./app:/app
networks:
- priv_net
app3:
build: ./app
container_name: app3
hostname: app3
restart: unless-stopped
ports:
- "5003:5000"
volumes:
- ./app:/app
networks:
- priv_net
networks:
priv_net: {}