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: . context: .
dockerfile: front/Dockerfile dockerfile: front/Dockerfile
ports: ports:
- ${FRONT_PORT:?}:80 - 80
deploy: deploy:
replicas: 3 replicas: 3
back: back:
image: registry.verdnatura.es/salix-back:${BRANCH_NAME:?} image: registry.verdnatura.es/salix-back:${BRANCH_NAME:?}
build: . build: .
ports: ports:
- ${BACK_PORT:?}:3000 - 3000
environment: environment:
- NODE_ENV - NODE_ENV
configs: configs:

View File

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