sysfiles/opt/mpa_wordpress/docker-compose.yml

40 lines
821 B
YAML
Raw Normal View History

2022-12-29 11:56:44 +01:00
version: "3"
2022-12-29 12:07:52 +01:00
networks:
mpa-wp:
external: false
2022-12-29 11:56:44 +01:00
services:
db:
2023-08-02 22:52:37 +02:00
image: mariadb:11.0.2
2022-12-29 11:56:44 +01:00
restart: unless-stopped
environment:
MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD}
MARIADB_USER: ${MARIADB_USER}
MARIADB_PASSWORD: ${MARIADB_PASSWORD}
MARIADB_DATABASE: ${MARIADB_DATABASE}
2022-12-29 12:07:52 +01:00
networks:
- mpa-wp
volumes:
- db_data:/var/lib/mysql
2022-12-29 11:56:44 +01:00
wordpress:
2023-08-02 22:52:37 +02:00
image: wordpress:6.2.2
2022-12-29 11:56:44 +01:00
restart: unless-stopped
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: ${MARIADB_USER}
WORDPRESS_DB_PASSWORD: ${MARIADB_PASSWORD}
WORDPRESS_DB_NAME: ${MARIADB_DATABASE}
2022-12-29 12:07:52 +01:00
networks:
- mpa-wp
volumes:
- wordpress_data:/var/www/html
ports:
- "8008:80"
depends_on:
- db
2022-12-29 11:56:44 +01:00
volumes:
db_data: {}
wordpress_data: {}