Created
December 6, 2023 20:10
-
-
Save Rhynorater/9c4b285a04f1b035634da1a8bf184d12 to your computer and use it in GitHub Desktop.
CTBBPodcast WordPress Testing Environment
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.8" | |
# NOTE! This docker container has hard-coded values for passwords - this is intentional as this is testing machine. DO NOT EXPOSE TO THE INTERNET. | |
services: | |
database: | |
image: mariadb:10.6.4-focal | |
restart: unless-stopped | |
ports: | |
- 3306:3306 | |
environment: | |
MYSQL_ROOT_PASSWORD: 'CTBB_ROOT_PASSWD' | |
MYSQL_DATABASE: 'CTBB_WP_DB' | |
MYSQL_USER: 'CTBB_WP_DB_USER' | |
MYSQL_PASSWORD: 'CTBB_WP_DB_PASSWD' | |
volumes: | |
- db-data:/var/lib/mysql | |
networks: | |
- wordpress-network | |
deploy: | |
resources: | |
limits: | |
memory: 2048m | |
phpmyadmin: | |
depends_on: | |
- database | |
image: phpmyadmin/phpmyadmin | |
restart: unless-stopped | |
ports: | |
- 1338:80 | |
environment: | |
PMA_HOST: database | |
MYSQL_ROOT_PASSWORD: 'CTBB_ROOT_PASSWD' | |
networks: | |
- wordpress-network | |
wordpress: | |
depends_on: | |
- database | |
image: wordpress:latest | |
restart: unless-stopped | |
ports: | |
- 1337:80 | |
environment: | |
WORDPRESS_DB_HOST: database:3306 | |
WORDPRESS_DB_NAME: 'CTBB_WP_DB' | |
WORDPRESS_DB_USER: 'CTBB_WP_DB_USER' | |
WORDPRESS_DB_PASSWORD: 'CTBB_WP_DB_PASSWD' | |
volumes: | |
- ./wp-content:/var/www/html/wp-content | |
networks: | |
- wordpress-network | |
volumes: | |
db-data: | |
networks: | |
wordpress-network: | |
driver: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment