Improved caddy support to latest ENV-config.

This commit is contained in:
Sascha Brendel 2017-05-09 00:55:15 +02:00
parent 264bec8806
commit 4661f1ab0e
No known key found for this signature in database
GPG Key ID: 928D5F269DEA177E
2 changed files with 12 additions and 7 deletions

View File

@ -399,16 +399,15 @@ services:
caddy: caddy:
build: ./caddy build: ./caddy
ports:
- "80:80"
- "443:443"
- "2015:2015"
volumes_from: volumes_from:
- applications - applications
volumes: volumes:
- ./caddy/Caddyfile:/etc/Caddyfile - ${CADDY_CUSTOM_CADDYFILE}:/etc/Caddyfile
- ./logs/caddy:/var/log/caddy - ${CADDY_HOST_LOG_PATH}:/var/log/caddy
- caddy:/root/.caddy - ${DATA_SAVE_PATH}:/root/.caddy
ports:
- "${CADDY_HOST_HTTP_PORT}:80"
- "${CADDY_HOST_HTTPS_PORT}:443"
depends_on: depends_on:
- php-fpm - php-fpm
networks: networks:

View File

@ -215,6 +215,12 @@ BLACKFIRE_CLIENT_TOKEN=<client_token>
BLACKFIRE_SERVER_ID=<server_id> BLACKFIRE_SERVER_ID=<server_id>
BLACKFIRE_SERVER_TOKEN=<server_token> BLACKFIRE_SERVER_TOKEN=<server_token>
### CADDY ##############################################################################################################
CADDY_HOST_HTTP_PORT=80
CADDY_HOST_HTTPS_PORT=443
CADDY_HOST_LOG_PATH=./logs/caddy
CADDY_CUSTOM_CADDYFILE=./caddy/Caddyfile
##### TO BE CONTINUE ................................. ##### TO BE CONTINUE .................................