-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (50 loc) · 1.11 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
version: '3'
services:
mariadb_cs_pm1:
image: alphatoxic/mcs:latest
depends_on:
- mariadb_cs_um
- mariadb_cs_pm2
environment:
- MARIADB_CS_UM_SERVICE_HOST=${MARIADB_CS_UM_SERVICE_HOST}
- MARIADB_CS_PM1_SERVICE_HOST=${MARIADB_CS_PM1_SERVICE_HOST}
- MARIADB_CS_PM2_SERVICE_HOST=${MARIADB_CS_PM2_SERVICE_HOST}
expose:
- 3306
- 8606
container_name: pm1
command: ./entrypoint.sh
networks:
app_net:
ipv4_address: ${MARIADB_CS_PM1_SERVICE_HOST}
mariadb_cs_um:
image: alphatoxic/mcs:latest
expose:
- 3306
- 22
- 8606
ports:
- "4306:3306"
command: /usr/sbin/sshd -D
container_name: um
networks:
app_net:
ipv4_address: ${MARIADB_CS_UM_SERVICE_HOST}
mariadb_cs_pm2:
image: alphatoxic/mcs:latest
expose:
- 3306
- 22
- 8606
command: /usr/sbin/sshd -D
container_name: pm2
networks:
app_net:
ipv4_address: ${MARIADB_CS_PM2_SERVICE_HOST}
networks:
app_net:
driver: bridge
ipam:
driver: default
config:
- subnet: ${SUBNET}