Skip to content

Commit

Permalink
remove back compose file, we could use common compose file instead
Browse files Browse the repository at this point in the history
also add back healthcheck
  • Loading branch information
nikitakalyanov committed Apr 6, 2021
1 parent 26a7e60 commit 5438773
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 37 deletions.
36 changes: 0 additions & 36 deletions back/docker-compose.yaml

This file was deleted.

8 changes: 7 additions & 1 deletion docker-compose.yaml
@@ -1,4 +1,4 @@
version: '3'
version: '3.4'

services:
postgres:
Expand Down Expand Up @@ -32,6 +32,12 @@ services:
- postgres
depends_on:
- postgres
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/status"]
interval: 10s
timeout: 5s
retries: 5
start_period: 180s # first start may be long due to downloading dependencies
front:
build: ./front
ports:
Expand Down

0 comments on commit 5438773

Please sign in to comment.