Prevent index caching, automatic docker ports
gitea/salix/master This commit looks good Details

This commit is contained in:
Juan Ferrer 2020-01-29 14:43:15 +01:00
parent 5ebe800c5f
commit 777a2e5fed
2 changed files with 6 additions and 2 deletions

View File

@ -6,14 +6,14 @@ services:
context: .
dockerfile: front/Dockerfile
ports:
- ${FRONT_PORT:?}:80
- 80
deploy:
replicas: 3
back:
image: registry.verdnatura.es/salix-back:${BRANCH_NAME:?}
build: .
ports:
- ${BACK_PORT:?}:3000
- 3000
environment:
- NODE_ENV
configs:

View File

@ -11,4 +11,8 @@ server {
location / {
autoindex on;
}
location /index.html {
expires -1;
add_header 'Cache-Control' 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
}
}