Skip to content

Instantly share code, notes, and snippets.

@jamct

jamct/docker-compose.yml

Last active May 8, 2019
Embed
What would you like to do?
WordPress with Docker-Compose
version: '3.7'
services:
db:
image: mysql:5.7
volumes:
- ./data/mysql:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: sehr_geheim
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress_user
MYSQL_PASSWORD: 123wordpress
wp:
depends_on:
- db
image: wordpress:4-php7.2-apache
volumes:
- ./data/wp/themes:/var/www/html/wp-content/themes/
- ./data/wp/uploads:/var/www/html/wp-content/uploads/
ports:
- "8001:80"
restart: always
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: wordpress_user
WORDPRESS_DB_PASSWORD: 123wordpress
@superkartoffel

This comment has been minimized.

Copy link

@superkartoffel superkartoffel commented May 8, 2019

This gist is linked from https://www.heise.de/ratgeber/Grafische-Oberflaechen-fuer-Docker-4324105.html when talking about portainer. But this has nothing to do with portainer. Am I missing something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.