Skip to content

Instantly share code, notes, and snippets.

@PatrickLang
Created March 20, 2017 15:43
Show Gist options
  • Save PatrickLang/5be2478ef4c67a7e525a065f9d195848 to your computer and use it in GitHub Desktop.
Save PatrickLang/5be2478ef4c67a7e525a065f9d195848 to your computer and use it in GitHub Desktop.
Example compose file for WordPress & MariaDB
version: '2'
services:
wordpress:
image: wordpress
ports:
- 8080:80
environment:
WORDPRESS_DB_PASSWORD: Password123!
restart: always
depends_on:
- mysql
mysql:
image: mariadb
environment:
MYSQL_ROOT_PASSWORD: Password123!
restart: always
volumes:
- wordpress1vol:/var/lib/mysql
volumes:
wordpress1vol:
driver: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment