-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
47 lines (44 loc) · 1.09 KB
/
docker-compose.yaml
File metadata and controls
47 lines (44 loc) · 1.09 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
services:
db:
image: mariadb:10.11
# If you really want to use MySQL, uncomment the following line
#image: mysql:8.0.27
command: --default-authentication-plugin=mysql_native_password
volumes:
- wp_db_data:/var/lib/mysql
restart: always
env_file:
- .env
ports:
- "3306:3306"
- "33060:33060"
wordpress:
image: wordpress:6.4-php8.2-apache
volumes:
- ./app:/var/www/html
- ./app/wp-content:/var/www/html/wp-content
# To let PHP infer that it is https
- ./reverse-proxy.conf:/etc/apache2/conf-enabled/reverse-proxy.conf:ro
expose:
- "80"
restart: always
env_file:
- .env
depends_on:
- db
command: bash -c "a2enmod rewrite && apache2-foreground"
#TODO Remove this in favor of Apache if automatic https is not required
caddy:
image: caddy:2.7-alpine
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
environment:
DOMAIN: ${DOMAIN:-localhost}
depends_on:
- wordpress
volumes:
wp_db_data: