Skip to content

Instantly share code, notes, and snippets.

@agross
Created June 25, 2019 11:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agross/865131f758aafef441699f24b7d8821b to your computer and use it in GitHub Desktop.
Save agross/865131f758aafef441699f24b7d8821b to your computer and use it in GitHub Desktop.
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