Created
August 23, 2023 16:45
-
-
Save neilhsmith/823ec5c8e0a79c487e27efafa74177cc to your computer and use it in GitHub Desktop.
WordPress docker compose file
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.1" | |
services: | |
db: | |
image: mariadb:latest | |
restart: always | |
environment: | |
- MARIADB_ROOT_PASSWORD=rootpass | |
- MYSQL_DATABASE=wordpress | |
- MYSQL_USER=wordpress | |
- MYSQL_PASSWORD=wordpress | |
volumes: | |
- ./mariadb/data:/var/lib/mysql/data/ | |
- ./mariadb/logs:/var/lib/mysql/logs/ | |
phpmyadmin: | |
image: phpmyadmin:latest | |
restart: always | |
ports: | |
- 8080:80 | |
environment: | |
- PMA_ARBITRARY=1 | |
wordpress: | |
image: wordpress:latest | |
volumes: | |
- ./wp:/var/www/html | |
ports: | |
- 3080:80 | |
restart: always | |
environment: | |
- WORDPRESS_DB_HOST=db | |
- WORDPRESS_DB_USER=wordpress | |
- WORDPRESS_DB_PASSWORD=wordpress | |
- WORDPRESS_DB_NAME=wordpress |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
web: localhost:3080
phpmyadmin: localhost:8080
db server: db
db user: wordpress
db pass: wordpress