Last active
October 31, 2020 07:44
-
-
Save CodeAdminDe/c61dbd5200ca8613bc107e4f25e768bc to your computer and use it in GitHub Desktop.
wordpress_docker_compose_sample_4_local_dev
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: '3.7' | |
networks: | |
wp: | |
volumes: | |
app: | |
db: | |
services: | |
wordpress: | |
image: wordpress:latest | |
restart: always | |
networks: | |
wp: | |
ports: | |
- 127.0.0.1:8080:80 | |
environment: | |
TZ: Europe/Berlin | |
WORDPRESS_DB_HOST: db | |
WORDPRESS_DB_USER: exampleuser | |
WORDPRESS_DB_PASSWORD: examplepass | |
WORDPRESS_DB_NAME: exampledb | |
volumes: | |
- app:/var/www/html | |
db: | |
image: mariadb:latest | |
restart: always | |
networks: | |
wp: | |
environment: | |
TZ: Europe/Berlin | |
MYSQL_DATABASE: exampledb | |
MYSQL_USER: exampleuser | |
MYSQL_PASSWORD: examplepass | |
MYSQL_RANDOM_ROOT_PASSWORD: '1' | |
volumes: | |
- db:/var/lib/mysql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just for local dev / testing. Change passwords if you'll use it!