-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
47 lines (47 loc) · 1.22 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
services:
db:
image: docker.io/library/mariadb:10.5.15 # Changed due to MariaDB Docker build issues.
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
timeout: 20s
retries: 5
environment:
MYSQL_ROOT_PASSWORD: s9f6sd759r32r7f0dsf5673894956
MYSQL_DATABASE: wordpress
db_pma:
image: docker.io/library/phpmyadmin:latest
depends_on:
- db
ports:
- 8082:80
environment:
MYSQL_ROOT_PASSWORD: s9f6sd759r32r7f0dsf5673894956
PMA_USER: root
PMA_PASSWORD: s9f6sd759r32r7f0dsf5673894956
mail:
# Port 1025 for SMTP.
image: docker.io/axllent/mailpit
ports:
- 8081:8025
- 8083:1025
www:
depends_on:
db:
condition: service_healthy
mail:
condition: service_started
build:
context: ./.docker
volumes:
- ".:/var/www/html/wp-content/plugins/simple-smtp"
- ".docker/mu-plugins:/var/www/html/wp-content/mu-plugins"
ports:
- 8080:80
- 4443:443
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: root
WORDPRESS_DB_PASSWORD: s9f6sd759r32r7f0dsf5673894956
WORDPRESS_DEBUG: 1
WORDPRESS_CONFIG_EXTRA: |
define( 'WP_ALLOW_MULTISITE', true );