adds reverse proxy env variable and wp-php image tag variable
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
DB_ROOT_PASSWORD=root
|
||||
DB_USER=user
|
||||
DB_USER_PASSWORD=user
|
||||
DOCKER_PREFIX=
|
||||
MOUNT_USER=
|
||||
DOCKER_PREFIX=wp
|
||||
DOCKER_IMAGE_TAG=dev
|
||||
MOUNT_USER=username
|
||||
TRAEFIK_NETWORK_NAME=traefik
|
||||
WP_ADMIN_PASSWORD=admin
|
||||
WP_ADMIN_USERNAME=admin
|
||||
WP_DEFAULT_PROTOCOL=https
|
||||
|
||||
@@ -69,5 +69,5 @@ docker exec --user www-data $DOCKER_PREFIX-web /bin/sh -c "
|
||||
--path=/var/www/html";
|
||||
|
||||
echo "Connect network to traefik";
|
||||
docker network connect $DOCKER_PREFIX traefik;
|
||||
docker network connect $DOCKER_PREFIX $TRAEFIK_NETWORK_NAME;
|
||||
docker-compose up -d adminer
|
||||
|
||||
@@ -13,7 +13,7 @@ services:
|
||||
- traefik.enable=true
|
||||
- traefik.http.routers.${DOCKER_PREFIX}-adminer.entrypoints=https
|
||||
- traefik.http.routers.${DOCKER_PREFIX}-adminer.rule=Host(`${WP_URL}`) && PathPrefix(`/adminer/`)
|
||||
- traefik.http.routers.${DOCKER_PREFIX}-adminer.tls=true
|
||||
- traefik.http.routers.${DOCKER_PREFIX}-adminer.tls=true # remove if using LE as default TLS
|
||||
- traefik.http.services.${DOCKER_PREFIX}-adminer.loadbalancer.server.port=8080
|
||||
db:
|
||||
command: --default-authentication-plugin=mysql_native_password
|
||||
@@ -29,12 +29,12 @@ services:
|
||||
- db:/var/lib/mysql
|
||||
web:
|
||||
container_name: ${DOCKER_PREFIX}-web
|
||||
image: wp-php7.3:dev
|
||||
image: wp-php7.3:${DOCKER_IMAGE_TAG}
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.http.routers.${DOCKER_PREFIX}-web.entrypoints=https
|
||||
- traefik.http.routers.${DOCKER_PREFIX}-web.rule=Host(`${WP_URL}`)
|
||||
- traefik.http.routers.${DOCKER_PREFIX}-web.tls=true
|
||||
- traefik.http.routers.${DOCKER_PREFIX}-web.tls=true # remove if using LE as default TLS provider
|
||||
- traefik.http.services.${DOCKER_PREFIX}-web.loadbalancer.server.port=80
|
||||
volumes:
|
||||
- web:/var/www/html
|
||||
|
||||
Reference in New Issue
Block a user