mirror of
https://github.com/dustinbrun/docker-compose-homeserver.git
synced 2025-09-07 09:27:28 +02:00
Version 1
This commit is contained in:
31
wordpress/docker-compose.yml
Normal file
31
wordpress/docker-compose.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
version: '3.1'
|
||||
|
||||
services:
|
||||
|
||||
wordpress:
|
||||
image: wordpress
|
||||
restart: always
|
||||
ports:
|
||||
- 84:80
|
||||
environment:
|
||||
WORDPRESS_DB_HOST: db
|
||||
WORDPRESS_DB_USER: wordpress
|
||||
WORDPRESS_DB_PASSWORD: changeme
|
||||
WORDPRESS_DB_NAME: wordpress
|
||||
volumes:
|
||||
- ./wordpress:/var/www/html
|
||||
|
||||
db:
|
||||
image: mysql:5.7
|
||||
restart: always
|
||||
environment:
|
||||
MYSQL_DATABASE: wordpress
|
||||
MYSQL_USER: wordpress
|
||||
MYSQL_PASSWORD: changeme
|
||||
MYSQL_ROOT_PASSWORD: changeme
|
||||
volumes:
|
||||
- ./db:/var/lib/mysql
|
||||
|
||||
volumes:
|
||||
wordpress:
|
||||
db:
|
Reference in New Issue
Block a user