Created
June 25, 2019 11:31
-
-
Save agross/865131f758aafef441699f24b7d8821b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2.3' | |
services: | |
mariadb: | |
image: mariadb | |
environment: | |
MYSQL_ROOT_PASSWORD: secret | |
volumes: | |
- ./wp/mariadb/conf:/etc/mysql/conf.d:ro | |
- ./wp/mariadb/data:/var/lib/mysql | |
wordpress: | |
image: wordpress:php7.0 | |
environment: | |
WORDPRESS_DB_HOST: db | |
WORDPRESS_DB_PASSWORD: secret | |
ports: | |
- 80:80 | |
restart: always | |
volumes: | |
- ./wp/app/wp-content:/var/www/html/wp-content | |
# Defines startup order only. | |
depends_on: | |
mariadb: | |
condition: service_healthy | |
smtp: | |
condition: service_healthy | |
smtp: | |
image: mwader/postfix-relay | |
restart: always | |
environment: | |
POSTFIX_myhostname: example.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment