forked from castlamp/zenbership
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (51 loc) · 1.21 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
version: "3"
services:
zenbership:
image: castlamp/zenbership:latest
ports:
- "80:80"
environment:
MYSQL_DATABASE: zenbership
MYSQL_PASSWORD: "change_password"
MYSQL_USER: zenbership_user
MYSQL_ROOT_PASSWORD: "change_password"
networks:
- zenbership-net
depends_on:
- mysql
deploy:
replicas: 1
resources:
limits:
cpus: "0.2"
memory: 300M
restart_policy:
condition: on-failure
mysql:
image: mysql:5.6.30
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: zenbership
MYSQL_PASSWORD: "change_password"
MYSQL_USER: zenbership_user
MYSQL_ROOT_PASSWORD: "change_password"
networks:
- zenbership-net
command: mysqld --sql_mode=NO_ENGINE_SUBSTITUTION
deploy:
placement:
constraints: [node.role == manager]
visualizer:
image: dockersamples/visualizer:stable
ports:
- "8091:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
deploy:
placement:
constraints: [node.role == manager]
networks:
- zenbership-net
networks:
zenbership-net: