-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
125 lines (125 loc) · 3.44 KB
/
docker-compose.yml
File metadata and controls
125 lines (125 loc) · 3.44 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
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
version: "3"
services:
rabbitmq:
image: rabbitmq:3.8.11-management
container_name: rabbitmq
environment:
RABBITMQ_ERLANG_COOKIE: ${RABBITMQ_ERLANG_COOKIE}
RABBITMQ_DEFAULT_USER: ${RABBITMQ_DEFAULT_USER}
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_DEFAULT_PASS}
ports:
- "127.0.0.1:5672:5672"
- "127.0.0.1:15672:15672"
deploy:
resources:
limits:
cpus: "1"
memory: 8G
reservations:
cpus: "1"
memory: 512M
tty: true
master:
build: dockerfiles/Master
tty: true
volumes:
- ./php/client:/home/ubuntu/client
- ./php/analysis:/home/ubuntu/analysis
- ./php/debloating_templates:/home/ubuntu/debloating_templates
deploy:
replicas: 4
resources:
limits:
cpus: "1"
memory: 512M
reservations:
cpus: "0.25"
memory: 128M
restart: always
run:
build: dockerfiles/Run
tty: true
volumes:
- ./php/client:/home/ubuntu/client
- ./php/analysis:/home/ubuntu/analysis
- ./php/debloating_templates:/home/ubuntu/debloating_templates
deploy:
replicas: 1
resources:
limits:
cpus: "1"
memory: 128M
reservations:
cpus: "0.25"
memory: 128M
worker:
build: dockerfiles/PHPWorker
tty: true
volumes:
- ./php/client:/home/ubuntu/client
- ./php/debloating_templates:/home/ubuntu/debloating_templates
deploy:
mode: replicated
replicas: 20
resources:
limits:
cpus: "1"
memory: 1G
reservations:
cpus: "0.5"
memory: 256M
restart: always
debug_worker:
build: dockerfiles/PHPWorkerNoMQ
tty: true
volumes:
- ./php/client:/home/ubuntu/client
- ./php/debloating_templates:/home/ubuntu/debloating_templates
apache:
build: dockerfiles/Apache
container_name: apache
volumes:
- ./php/debloating_templates/app:/var/www/html
db:
image: mysql:latest
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: grafana
MYSQL_USER: cc_user
MYSQL_PASSWORD: cc_password
ports:
- "127.0.0.1:6033:3306"
volumes:
- dbdata:/var/lib/mysql
- ./dockerfiles/db:/docker-entrypoint-initdb.d
phpmyadmin:
image: phpmyadmin/phpmyadmin
links:
- db
environment:
PMA_HOST: db
PMA_PORT: 3306
PMA_ARBITRARY: 1
restart: always
ports:
- "127.0.0.1:8080:80"
grafana:
image: grafana/grafana:latest
ports:
- "127.0.0.1:3000:3000"
environment:
GF_SECURITY_ADMIN_USER: admin
GF_SECURITY_ADMIN_PASSWORD: admin
GF_DATABASE_TYPE: mysql
GF_DATABASE_HOST: db:3306
GF_DATABASE_NAME: grafana
GF_DATABASE_USER: cc_user
GF_DATABASE_PASSWORD: cc_password
volumes:
- grafana-storage:/var/lib/grafana
restart: always
redis:
image: redis:bullseye
volumes:
dbdata:
grafana-storage: