Skip to content

Instantly share code, notes, and snippets.

@arellano-gustavo
Created January 26, 2023 17:29
Show Gist options
  • Save arellano-gustavo/cf8a164a581b29137fccdf904ecdb87f to your computer and use it in GitHub Desktop.
Save arellano-gustavo/cf8a164a581b29137fccdf904ecdb87f to your computer and use it in GitHub Desktop.
wordpress
version: '3'
services:
db:
image: mariadb:10.3.9
volumes:
- data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=secret
- MYSQL_DATABASE=wordpress
- MYSQL_USER=manager
- MYSQL_PASSWORD=secret
web:
image: wordpress:4.9.8
depends_on:
- db
volumes:
- ./target:/var/www/html
environment:
- WORDPRESS_DB_USER=manager
- WORDPRESS_DB_PASSWORD=secret
- WORDPRESS_DB_HOST=db
ports:
- 80:80
- 443:443
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment