-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
105 lines (98 loc) · 2.41 KB
/
Copy pathcompose.yaml
File metadata and controls
105 lines (98 loc) · 2.41 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
name: sprey-wp-stack
x-logging: &default-logging
driver: local
options:
max-size: "10m"
max-file: "3"
services:
caddy:
image: ${CADDY_IMAGE:-caddy:2-alpine}
restart: unless-stopped
logging: *default-logging
env_file: .env
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy_data:/data
- caddy_config:/config
depends_on:
wordpress:
condition: service_started
networks:
- edge
- app
wordpress:
# Builds on the moving official WordPress PHP 8.4 image and bundles the
# current stable WooCommerce + BTCPay for WooCommerce V2 releases.
build:
context: .
dockerfile: Dockerfile.wordpress
image: ${WORDPRESS_IMAGE:-sprey-wordpress:local}
restart: unless-stopped
logging: *default-logging
env_file: .env
environment:
WORDPRESS_DB_HOST: mariadb:3306
WORDPRESS_DB_NAME: ${MYSQL_DATABASE}
WORDPRESS_DB_USER: ${MYSQL_USER}
WORDPRESS_DB_PASSWORD: ${MYSQL_PASSWORD}
volumes:
- wordpress_data:/var/www/html
depends_on:
mariadb:
condition: service_healthy
networks:
- edge
- app
mariadb:
# LTS moves to current security releases without surprise major upgrades.
image: ${MARIADB_IMAGE:-mariadb:lts}
restart: unless-stopped
logging: *default-logging
env_file: .env
environment:
MARIADB_DATABASE: ${MYSQL_DATABASE}
MARIADB_USER: ${MYSQL_USER}
MARIADB_PASSWORD: ${MYSQL_PASSWORD}
MARIADB_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
volumes:
- mariadb_data:/var/lib/mysql
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 10s
timeout: 5s
retries: 12
start_period: 30s
networks:
- app
phpmyadmin:
image: ${PHPMYADMIN_IMAGE:-phpmyadmin:latest}
profiles: ["admin"]
restart: unless-stopped
logging: *default-logging
env_file: .env
environment:
PMA_HOST: mariadb
PMA_PORT: "3306"
UPLOAD_LIMIT: 32M
depends_on:
mariadb:
condition: service_healthy
ports:
- "127.0.0.1:8081:80"
networks:
- edge
- app
volumes:
caddy_data:
caddy_config:
wordpress_data:
mariadb_data:
networks:
edge:
app:
internal: true