added wordpress.yml
parent
28eddb0591
commit
885056576a
@ -0,0 +1,43 @@
|
|||||||
|
#
|
||||||
|
# Author: Hari Sekhon
|
||||||
|
# Date: 2023-12-04 12:24:30 +0000 (Mon, 04 Dec 2023)
|
||||||
|
#
|
||||||
|
# vim:ts=2:sts=2:sw=2:et
|
||||||
|
#
|
||||||
|
# https://github.com/HariSekhon/DevOps-Bash-tools
|
||||||
|
#
|
||||||
|
# License: see accompanying Hari Sekhon LICENSE file
|
||||||
|
#
|
||||||
|
# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help steer this or other code I publish
|
||||||
|
#
|
||||||
|
# https://www.linkedin.com/in/HariSekhon
|
||||||
|
#
|
||||||
|
|
||||||
|
---
|
||||||
|
version: '3.1'
|
||||||
|
services:
|
||||||
|
wordpress:
|
||||||
|
image: wordpress:${VERSION:-latest}
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- 8080:80
|
||||||
|
environment:
|
||||||
|
WORDPRESS_DB_HOST: db
|
||||||
|
WORDPRESS_DB_USER: exampleuser
|
||||||
|
WORDPRESS_DB_PASSWORD: examplepass
|
||||||
|
WORDPRESS_DB_NAME: exampledb
|
||||||
|
volumes:
|
||||||
|
- wordpress:/var/www/html
|
||||||
|
db:
|
||||||
|
image: mysql:5.7
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
MYSQL_DATABASE: exampledb
|
||||||
|
MYSQL_USER: exampleuser
|
||||||
|
MYSQL_PASSWORD: examplepass
|
||||||
|
MYSQL_RANDOM_ROOT_PASSWORD: '1'
|
||||||
|
volumes:
|
||||||
|
- db:/var/lib/mysql
|
||||||
|
volumes:
|
||||||
|
wordpress:
|
||||||
|
db:
|
Loading…
Reference in New Issue