This repository has been archived by the owner on Nov 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (56 loc) · 1.71 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
version: '3'
services:
wordpress:
image: ${WP_IMAGE}
depends_on:
- database
- phpmyadmin
restart: on-failure
working_dir: ${WP_ROOT_DIR}
ports:
- "${WP_PUBLISHED_PORT}:80"
- "${WP_PUBLISHED_PORT_HTTPS}:443"
volumes:
# WordPress Core install.
- "./wordpress:${WP_ROOT_DIR}"
# Site configuration.
- "./config/wp-locker-php.ini:/usr/local/etc/php/conf.d/wp-locker-php.ini"
- "./config/wp-config-sample.php:/usr/src/wordpress/wp-config-sample.php"
- "./config/wp-locker.conf:/etc/apache2/sites-available/wp-locker.conf"
- "./config/wp-locker-ssl.conf:/etc/apache2/sites-available/wp-locker-ssl.conf"
# SSL cert.
- "./ssl/certs/wp-locker-crt.pem:/etc/ssl/certs/wp-locker-crt.pem"
- "./ssl/certs/wp-locker-key.pem:/etc/ssl/private/wp-locker-key.pem"
# Custom bash scripts.
- "./bin/init-apache.sh:/usr/local/bin/init-apache.sh"
environment:
WORDPRESS_DB_HOST: ${DB_HOST}
WORDPRESS_DB_NAME: ${DB_NAME}
WORDPRESS_DB_USER: ${DB_USER}
WORDPRESS_DB_PASSWORD: ${DB_PASSWORD}
APACHE_LOG_DIR: ${APACHE_LOG_DIR}
APACHE_RUN_DIR: ${APACHE_LOG_DIR}
command: "bash -c init-apache.sh"
database:
image: ${DB_IMAGE}
volumes:
- mysql:/var/lib/mysql
restart: on-failure
ports:
- "${DB_PUBLISHED_PORT}:3306"
environment:
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
MYSQL_DATABASE: ${DB_NAME}
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASSWORD}
phpmyadmin:
image: ${PMA_IMAGE}
depends_on:
- database
restart: on-failure
ports:
- "${PMA_PUBLISHED_PORT}:80"
environment:
- PMA_HOST=${DB_HOST}
volumes:
mysql: