Skip to content

Instantly share code, notes, and snippets.

@CodeAdminDe
Last active October 31, 2020 07:44
Show Gist options
  • Save CodeAdminDe/c61dbd5200ca8613bc107e4f25e768bc to your computer and use it in GitHub Desktop.
Save CodeAdminDe/c61dbd5200ca8613bc107e4f25e768bc to your computer and use it in GitHub Desktop.
wordpress_docker_compose_sample_4_local_dev
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
@CodeAdminDe
Copy link
Author

Just for local dev / testing. Change passwords if you'll use it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment