File tree Expand file tree Collapse file tree 4 files changed +30
-16
lines changed
Expand file tree Collapse file tree 4 files changed +30
-16
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ services:
1414 restart : unless-stopped
1515 networks :
1616 - app
17+ - frontend
1718 environment :
1819 - PHP_MAX_EXECUTION_TIME=30
1920 - PHP_MEMORY_LIMIT=128M
@@ -39,9 +40,13 @@ services:
3940 labels :
4041 - " traefik.enable=true"
4142 - " traefik.docker.network=frontend"
43+ - " traefik.http.routers.${COMPOSE_PROJECT_NAME}-http.rule=Host(`${COMPOSE_SERVER_DOMAIN}`)"
44+ - " traefik.http.routers.${COMPOSE_PROJECT_NAME}-http.entrypoints=web"
45+ - " traefik.http.routers.${COMPOSE_PROJECT_NAME}-http.middlewares=redirect-to-https"
46+ - " traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
4247 - " traefik.http.routers.${COMPOSE_PROJECT_NAME}.rule=Host(`${COMPOSE_SERVER_DOMAIN}`)"
43- - " traefik.http.routers.${COMPOSE_PROJECT_NAME}.entrypoints=websecure"
44- # - "traefik.http.routers.${COMPOSE_PROJECT_NAME}.middlewares=ITKBasicAuth@file"
48+ - " traefik.http.routers.${COMPOSE_PROJECT_NAME}.entrypoints=websecure"
49+ # - "traefik.http.routers.${COMPOSE_PROJECT_NAME}.middlewares=ITKBasicAuth@file"
4550
4651 memcached :
4752 image : ' memcached:latest'
@@ -57,6 +62,7 @@ services:
5762 image : itkdev/drush6:latest
5863 networks :
5964 - app
65+ - frontend
6066 depends_on :
6167 - mariadb
6268 entrypoint :
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ services:
1414 restart : unless-stopped
1515 networks :
1616 - app
17+ - frontend
1718 environment :
1819 - PHP_MAX_EXECUTION_TIME=30
1920 - PHP_MEMORY_LIMIT=128M
@@ -39,9 +40,13 @@ services:
3940 labels :
4041 - " traefik.enable=true"
4142 - " traefik.docker.network=frontend"
43+ - " traefik.http.routers.${COMPOSE_PROJECT_NAME}-http.rule=Host(`${COMPOSE_SERVER_DOMAIN}`)"
44+ - " traefik.http.routers.${COMPOSE_PROJECT_NAME}-http.entrypoints=web"
45+ - " traefik.http.routers.${COMPOSE_PROJECT_NAME}-http.middlewares=redirect-to-https"
46+ - " traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
4247 - " traefik.http.routers.${COMPOSE_PROJECT_NAME}.rule=Host(`${COMPOSE_SERVER_DOMAIN}`)"
43- - " traefik.http.routers.${COMPOSE_PROJECT_NAME}.entrypoints=websecure"
44- # - "traefik.http.routers.${COMPOSE_PROJECT_NAME}.middlewares=ITKBasicAuth@file"
48+ - " traefik.http.routers.${COMPOSE_PROJECT_NAME}.entrypoints=websecure"
49+ # - "traefik.http.routers.${COMPOSE_PROJECT_NAME}.middlewares=ITKBasicAuth@file"
4550
4651 memcached :
4752 image : ' memcached:latest'
@@ -57,6 +62,7 @@ services:
5762 image : itkdev/drush6:latest
5863 networks :
5964 - app
65+ - frontend
6066 depends_on :
6167 - mariadb
6268 entrypoint :
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ services:
1414 restart : unless-stopped
1515 networks :
1616 - app
17+ - frontend
1718 environment :
1819 - PHP_MAX_EXECUTION_TIME=30
1920 - PHP_MEMORY_LIMIT=128M
@@ -37,10 +38,11 @@ services:
3738 labels :
3839 - " traefik.enable=true"
3940 - " traefik.docker.network=frontend"
41+ - " traefik.http.routers.${COMPOSE_PROJECT_NAME}-http.rule=Host(`${COMPOSE_SERVER_DOMAIN}`)"
42+ - " traefik.http.routers.${COMPOSE_PROJECT_NAME}-http.entrypoints=web"
43+ - " traefik.http.routers.${COMPOSE_PROJECT_NAME}-http.middlewares=redirect-to-https"
44+ - " traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
4045 - " traefik.http.routers.${COMPOSE_PROJECT_NAME}.rule=Host(`${COMPOSE_SERVER_DOMAIN}`)"
41- - " traefik.http.routers.${COMPOSE_PROJECT_NAME}.entrypoints=websecure"
42- # - "traefik.http.routers.${COMPOSE_PROJECT_NAME}.middlewares=ITKBasicAuth@file"
46+ - " traefik.http.routers.${COMPOSE_PROJECT_NAME}.entrypoints=websecure"
47+ # - "traefik.http.routers.${COMPOSE_PROJECT_NAME}.middlewares=ITKBasicAuth@file"
4348
44- # Drush cache volume to persist cache between runs.
45- volumes :
46- drush-cache :
Original file line number Diff line number Diff line change @@ -14,12 +14,12 @@ services:
1414 restart : unless-stopped
1515 networks :
1616 - app
17+ - frontend
1718 environment :
1819 - PHP_MAX_EXECUTION_TIME=30
1920 - PHP_MEMORY_LIMIT=128M
2021 volumes :
2122 - .:/app:delegated
22- - drush-cache:/root/.drush
2323
2424 nginx :
2525 image : nginx:stable-alpine
@@ -37,10 +37,10 @@ services:
3737 labels :
3838 - " traefik.enable=true"
3939 - " traefik.docker.network=frontend"
40+ - " traefik.http.routers.${COMPOSE_PROJECT_NAME}-http.rule=Host(`${COMPOSE_SERVER_DOMAIN}`)"
41+ - " traefik.http.routers.${COMPOSE_PROJECT_NAME}-http.entrypoints=web"
42+ - " traefik.http.routers.${COMPOSE_PROJECT_NAME}-http.middlewares=redirect-to-https"
43+ - " traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
4044 - " traefik.http.routers.${COMPOSE_PROJECT_NAME}.rule=Host(`${COMPOSE_SERVER_DOMAIN}`)"
41- - " traefik.http.routers.${COMPOSE_PROJECT_NAME}.entrypoints=websecure"
42- # - "traefik.http.routers.${COMPOSE_PROJECT_NAME}.middlewares=ITKBasicAuth@file"
43-
44- # Drush cache volume to persist cache between runs.
45- volumes :
46- drush-cache :
45+ - " traefik.http.routers.${COMPOSE_PROJECT_NAME}.entrypoints=websecure"
46+ # - "traefik.http.routers.${COMPOSE_PROJECT_NAME}.middlewares=ITKBasicAuth@file"
You can’t perform that action at this time.
0 commit comments