Skip to content

Instantly share code, notes, and snippets.

@jamct
Last active November 16, 2021 16:37
Show Gist options
  • Save jamct/1794e4e52b9f0fbd280c7df5666724df to your computer and use it in GitHub Desktop.
Save jamct/1794e4e52b9f0fbd280c7df5666724df to your computer and use it in GitHub Desktop.
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
Copy link

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