This repository was archived by the owner on Feb 17, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
71 lines (68 loc) · 1.77 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
62
63
64
65
66
67
68
69
70
71
networks:
default:
web:
external: true
services:
wordpress:
image: wordpress:6.2.0-apache@sha256:fad1ce2182a79e442b20b333a3be786e84a4e44391f87dab51a1992e22790528
container_name: aosus-wordpress
restart: always
environment:
WORDPRESS_DB_HOST: mariadb
WORDPRESS_DB_USER: aosusworddb
WORDPRESS_DB_NAME: wordpress
WORDPRESS_DB_PASSWORD: ${MARIADB_PASSWORD}
# WORDPRESS_DEBUG: true
networks:
default:
web:
volumes:
- /home/aosus/aosus-wordpress/html:/var/www/html:rw
configs:
- source: custom-ini
target: /usr/local/etc/php/conf.d/custom.ini
deploy:
# swarm zero-down time deployment
update_config:
delay: 5s
order: start-first
monitor: 4s
failure_action: rollback
rollback_config:
parallelism: 0
order: stop-first
restart_policy:
condition: any
delay: 5s
max_attempts: 3
window: 120s
mariadb:
image: mariadb:10.11.2@sha256:9ff479f244cc596aed9794d035a9f352662f2caed933238c533024df64569853
restart: always
environment:
MARIADB_USER: aosusworddb
MARIADB_DATABASE: wordpress
MARIADB_PASSWORD:
MARIADB_AUTO_UPGRADE: true
#MARIADB_RANDOM_ROOT_PASSWORD: '1'
MARIADB_ROOT_PASSWORD:
volumes:
- /home/aosus/aosus-wordpress/mariadb:/var/lib/mysql
deploy:
mode: global
update_config:
parallelism: 0
order: start-first
monitor: 4s
failure_action: rollback
rollback_config:
parallelism: 0
order: stop-first
restart_policy:
condition: any
delay: 5s
max_attempts: 3
window: 120s
configs:
custom-ini:
file: /home/aosus/aosus-wordpress/custom.ini