Last active
November 16, 2021 16:37
-
-
Save jamct/1794e4e52b9f0fbd280c7df5666724df to your computer and use it in GitHub Desktop.
WordPress with Docker-Compose
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: '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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?