Created
August 10, 2020 17:28
-
-
Save dnburgess/8014dc2eae348c5d6219fd86adeb67cf to your computer and use it in GitHub Desktop.
DB Tech WordPress
This file contains hidden or 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.1' | |
services: | |
wordpress: | |
image: wordpress | |
restart: always | |
ports: | |
- 8282:80 | |
environment: | |
WORDPRESS_DB_HOST: db | |
WORDPRESS_DB_USER: exampleuser | |
WORDPRESS_DB_PASSWORD: examplepass | |
WORDPRESS_DB_NAME: exampledb | |
volumes: | |
- /srv/dev-disk-by-label-ssd/conf/Wordpress2:/var/www/html | |
links: | |
- db:db | |
db: | |
image: mysql:5.7 | |
restart: always | |
environment: | |
MYSQL_DATABASE: exampledb | |
MYSQL_USER: exampleuser | |
MYSQL_PASSWORD: examplepass | |
MYSQL_RANDOM_ROOT_PASSWORD: '1' | |
volumes: | |
- db:/var/lib/mysql | |
volumes: | |
wordpress: | |
db: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment