adds reverse proxy env variable and wp-php image tag variable

This commit is contained in:
2020-07-16 15:32:14 +02:00
parent 3b509ed787
commit 2079fb48cf
4 changed files with 9 additions and 7 deletions

View File

@@ -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