39 lines
821 B
YAML
39 lines
821 B
YAML
version: "3"
|
|
|
|
networks:
|
|
mpa-wp:
|
|
external: false
|
|
|
|
services:
|
|
db:
|
|
image: mariadb:11.0.2
|
|
restart: unless-stopped
|
|
environment:
|
|
MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD}
|
|
MARIADB_USER: ${MARIADB_USER}
|
|
MARIADB_PASSWORD: ${MARIADB_PASSWORD}
|
|
MARIADB_DATABASE: ${MARIADB_DATABASE}
|
|
networks:
|
|
- mpa-wp
|
|
volumes:
|
|
- db_data:/var/lib/mysql
|
|
|
|
wordpress:
|
|
image: wordpress:6.2.2
|
|
restart: unless-stopped
|
|
environment:
|
|
WORDPRESS_DB_HOST: db
|
|
WORDPRESS_DB_USER: ${MARIADB_USER}
|
|
WORDPRESS_DB_PASSWORD: ${MARIADB_PASSWORD}
|
|
WORDPRESS_DB_NAME: ${MARIADB_DATABASE}
|
|
networks:
|
|
- mpa-wp
|
|
volumes:
|
|
- wordpress_data:/var/www/html
|
|
ports:
|
|
- "8008:80"
|
|
depends_on:
|
|
- db
|
|
volumes:
|
|
db_data: {}
|
|
wordpress_data: {}
|