Standardize compose file
This commit is contained in:
parent
e6486d8d1a
commit
72d6ba03e2
|
@ -1,31 +1,39 @@
|
||||||
version: "3"
|
version: "3"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
mpa-wp:
|
||||||
|
external: false
|
||||||
|
|
||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
image: mariadb:10.10.2
|
image: mariadb:10.10.2
|
||||||
volumes:
|
|
||||||
- db_data:/var/lib/mysql
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD}
|
MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD}
|
||||||
MARIADB_USER: ${MARIADB_USER}
|
MARIADB_USER: ${MARIADB_USER}
|
||||||
MARIADB_PASSWORD: ${MARIADB_PASSWORD}
|
MARIADB_PASSWORD: ${MARIADB_PASSWORD}
|
||||||
MARIADB_DATABASE: ${MARIADB_DATABASE}
|
MARIADB_DATABASE: ${MARIADB_DATABASE}
|
||||||
|
networks:
|
||||||
|
- mpa-wp
|
||||||
|
volumes:
|
||||||
|
- db_data:/var/lib/mysql
|
||||||
|
|
||||||
wordpress:
|
wordpress:
|
||||||
depends_on:
|
|
||||||
- db
|
|
||||||
image: wordpress:6.1.1
|
image: wordpress:6.1.1
|
||||||
volumes:
|
|
||||||
- wordpress_data:/var/www/html
|
|
||||||
ports:
|
|
||||||
- "8008:80"
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
WORDPRESS_DB_HOST: db
|
WORDPRESS_DB_HOST: db
|
||||||
WORDPRESS_DB_USER: ${MARIADB_USER}
|
WORDPRESS_DB_USER: ${MARIADB_USER}
|
||||||
WORDPRESS_DB_PASSWORD: ${MARIADB_PASSWORD}
|
WORDPRESS_DB_PASSWORD: ${MARIADB_PASSWORD}
|
||||||
WORDPRESS_DB_NAME: ${MARIADB_DATABASE}
|
WORDPRESS_DB_NAME: ${MARIADB_DATABASE}
|
||||||
|
networks:
|
||||||
|
- mpa-wp
|
||||||
|
volumes:
|
||||||
|
- wordpress_data:/var/www/html
|
||||||
|
ports:
|
||||||
|
- "8008:80"
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
volumes:
|
volumes:
|
||||||
db_data: {}
|
db_data: {}
|
||||||
wordpress_data: {}
|
wordpress_data: {}
|
||||||
|
|
Loading…
Reference in New Issue