-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker_compose.yaml
More file actions
49 lines (45 loc) · 968 Bytes
/
docker_compose.yaml
File metadata and controls
49 lines (45 loc) · 968 Bytes
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
version: '3.4'
volumes:
modal-nodes_mysql:
external: true
networks:
traefik:
external: true
phpmyadmin:
external: true
services:
wordpress:
image: modalnodes/images:{{image_name}}
networks:
- default
- traefik
deploy:
replicas: 1
restart_policy:
condition: on-failure
delay: 10s
max_attempts: 3
labels:
- "traefik.docker.network=traefik"
- "traefik.frontend.rule=Host:${FRONT_DOMAIN}"
- "traefik.port=80"
environment:
WORDPRESS_DB_PASSWORD: ${DB_PASSWORD}
mysql:
image: mysql:5.7
volumes:
- {{volume_name}}:/var/lib/mysql
networks:
- default
- phpmyadmin
deploy:
replicas: 1
placement:
constraints:
- node.hostname == flexo
restart_policy:
condition: on-failure
delay: 10s
max_attempts: 3
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}