wordpress/docker-compose.yml

37 lines
679 B
YAML
Raw Normal View History

2022-12-18 00:26:19 +01:00
version: '2.4'
services:
db:
2022-12-19 20:04:44 +01:00
image: registry.sindominio.net/mariadb
2022-12-18 00:26:19 +01:00
user: "$USER_GROUP"
restart: always
volumes:
- ./db:/var/lib/mysql
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=1
- MYSQL_DATABASE
- MYSQL_USER
- MYSQL_PASSWORD
wordpress:
image: registry.sindominio.net/wordpress
user: "$USER_GROUP"
restart: always
depends_on:
- db
volumes:
- ./uploads:/app/wp-content/uploads
ports:
- 8080:8080
environment:
- MYSQL_HOST=db
- MYSQL_DATABASE
- MYSQL_USER
- MYSQL_PASSWORD
- WP_USER
- WP_PASS
- WP_EMAIL
- WP_TITLE
- WP_URL