-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
61 lines (61 loc) · 1.54 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
version: '2'
networks:
net_front:
driver: bridge
net_backend:
driver: bridge
services:
web:
image: nginx:latest
container_name: web
networks:
- net_front
volumes:
- /etc/gmp/nginx/nginx.conf:/etc/nginx/nginx.conf
ports:
- 80:80
redis:
image: redis
container_name: redis
networks:
- net_backend
webserver1:
image: nicksav/fmpwebserver
volumes:
- /etc/gmp/keys:/go/bin/settings/keys
container_name: webserver1
networks:
- net_backend
- net_front
ports:
- 5000:5000
webserver2:
image: nicksav/fmpwebserver
volumes:
- /etc/gmp/keys:/go/bin/settings/keys
container_name: webserver2
networks:
- net_backend
- net_front
ports:
- 5000:5000
masterdb:
image: percona:5.7.16
volumes:
- /etc/gmp/masterdb/data:/var/lib/mysql
- /etc/gmp/master/cnf:/etc/mysql/conf.d
environment:
MYSQL_ROOT_PASSWORD: mysecretpass
container_name: masterdb
networks:
- net_backend
slavedb:
image: percona:5.7.16
volumes:
- /etc/gmp/slavedb/data:/var/lib/mysql
- /etc/gmp/slave/cnf:/etc/mysql/conf.d
environment:
MYSQL_ROOT_PASSWORD: mysecretpass
container_name: slavedb
networks:
- net_backend