docker-compose: fix started detection

This commit is contained in:
nemunaire 2019-07-30 19:32:07 +02:00
parent 6d72e6b970
commit 0cbd6390ba
2 changed files with 8 additions and 1 deletions

View File

@ -96,7 +96,7 @@ server {
expires epoch;
add_header Cache-Control no-cache;
if (!-f $document_root/../started) {
if (!-f $document_root/../../startingblock/started) {
rewrite ^/ /wait.json;
}
}

View File

@ -56,6 +56,7 @@ services:
context: .
dockerfile: Dockerfile-frontend
image: nemunaire/fic-frontend:latest
command: "-startedFile /srv/startingblock/started"
ports:
- "8080:8080"
volumes:
@ -64,6 +65,7 @@ services:
- teams:/srv/TEAMS:ro
- settings:/srv/SETTINGS:ro
- submissions:/srv/submissions
- startingblock:/srv/startingblock
depends_on:
- fic-backend
@ -93,6 +95,7 @@ services:
- files:/srv/FILES:ro
- settings:/srv/SETTINGS:ro
- teams:/srv/TEAMS:ro
- startingblock:/srv/startingblock:ro
depends_on:
- fic-frontend
- fic-admin
@ -104,5 +107,9 @@ volumes:
htdocs:
pki:
settings:
startingblock:
driver_opts:
type: tmpfs
device: tmpfs
submissions:
teams: