Commit 1df7ad4b authored by Michael Iseard's avatar Michael Iseard
Browse files

Change database container name to db

parent abfb73fd
......@@ -9,7 +9,7 @@ PHP_VERSION=7.4
WORDPRESS_DB_NAME=wordpress
WORDPRESS_TABLE_PREFIX=wp_
# mariadb - mariadb:latest
# db - mariadb:latest
MARIADB_VERSION=latest
MYSQL_ROOT_PASSWORD=password
MYSQL_USER=root
......
......@@ -12,7 +12,7 @@ services:
ports:
- ${ADMINER_PORT:-8080}:8080
links:
- mysql
- db
networks:
- web
- default
......@@ -48,14 +48,14 @@ services:
networks:
- default
depends_on:
- mysql
- db
volumes:
- ${WORDPRESS_DIR:-./wordpress}:/var/www/html/
- ${PHP_UPLOADS:-./php/uploads.ini}:/usr/local/etc/php/conf.d/uploads.ini
environment:
- WORDPRESS_DB_NAME=${MYSQL_DATABASE:-wordpress}
- WORDPRESS_TABLE_PREFIX=${WORDPRESS_TABLE_PREFIX:-wp_}
- WORDPRESS_DB_HOST=mysql
- WORDPRESS_DB_HOST=db
- WORDPRESS_DB_USER=${MYSQL_USER:-root}
- WORDPRESS_DB_PASSWORD=${MYSQL_PASSWORD:-password}
restart: always
......@@ -82,9 +82,9 @@ services:
- traefik.http.services.${CONTAINER_PREFIX}.loadbalancer.server.port=80
- traefik.http.routers.${CONTAINER_PREFIX}.entrypoints=web-secure
mysql:
db:
image: mariadb:${MARIADB_VERSION:-latest}
container_name: ${CONTAINER_PREFIX}-mysql
container_name: ${CONTAINER_PREFIX}-db
volumes:
- ${MYSQL_DATA_DIR:-./mysql}:/var/lib/mysql
networks:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment