Commit 0130e6cf authored by Michael Iseard's avatar Michael Iseard
Browse files

Update variable name

parent 10152b21
# general
HOST=sub.domain.com
TRAEFIK_ENABLE=true
CONTAINER_PREFIX=myproject
CONTAINER_PREFIX=mywebsite
PHP_VERSION=7.4
WORDPRESS_VERSION=latest
# adminer
ADMINER_HOST=adminer.domain.com
ADMINER_PORT=8081
# wordpress - wordpress:php7.3-fpm
WORDPRESS_DB_NAME=wordpress
WORDPRESS_DB_NAME=kudos
WORDPRESS_TABLE_PREFIX=wp_
# db - mariadb:latest
# adminer
ADMINER_HOST=adminer.domain.com
ADMINER_PORT=8082
ADMINER_TRAEFIK_ENABLE=true
# mariadb - mariadb:latest
MARIADB_VERSION=latest
MYSQL_ROOT_PASSWORD=password
MYSQL_USER=root
MYSQL_PASSWORD=password
MYSQL_ROOT_PASSWORD=changeme
MYSQL_USER=user
MYSQL_PASSWORD=changeme
MYSQL_DATABASE=wordpress
# nginx - nginx:latest
NGINX_VERSION=latest
NGINX_TRAEFIK_ENABLE=true
# redis
REDIS_PASSWORD=changeme
......
......@@ -17,7 +17,7 @@ services:
- web
- default
labels:
- traefik.enable=true
- traefik.enable=${ADMINER_TRAEFIK_ENABLE:-false}
- traefik.docker.network=web
- traefik.http.routers.${CONTAINER_PREFIX}-adminer.rule=Host(`${ADMINER_HOST}`)
- traefik.http.routers.${CONTAINER_PREFIX}-adminer.tls.certresolver=cloudflare
......@@ -51,7 +51,6 @@ services:
'auth' => '${REDIS_PASSWORD}',
'database' => 0, // Optionally use a specific numeric Redis database. Default is 0.
);
restart: always
nginx:
......@@ -69,7 +68,7 @@ services:
- wordpress
restart: always
labels:
- traefik.enable=${TRAEFIK_ENABLE:-true}
- traefik.enable=${NGINX_TRAEFIK_ENABLE:-true}
- traefik.docker.network=web
- traefik.http.routers.${CONTAINER_PREFIX}.rule=Host(`${HOST}`, `www.${HOST}`)
- traefik.http.routers.${CONTAINER_PREFIX}.tls.certresolver=cloudflare
......
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