Skip to content

Commit

Permalink
Backend now waits until backend will fully load (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
FilipKolodziejczyk authored Jun 14, 2023
2 parents 186090f + 8867642 commit 3a278d2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions infrastructure/local/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ services:
ports:
- "${BACKEND_PORT}:443"
depends_on:
- db
db:
condition: service_healthy
environment:
- ASPNETCORE_ENVIRONMENT=Development
- USE_IN_MEMORY_DB=${USE_IN_MEMORY_DB}
Expand All @@ -27,17 +28,22 @@ services:
- net

db:
image: mcr.microsoft.com/mssql/server:2022-latest
image: mcr.microsoft.com/mssql/server:2022-RTM-GDR1-ubuntu-20.04
platform: linux/amd64
environment:
- ACCEPT_EULA=Y
- MSSQL_SA_PASSWORD=${DbPassword}
healthcheck:
test: ["CMD", "/opt/mssql-tools/bin/sqlcmd", "-U", "sa", "-P", "zaq1@WSX", "-Q", "select 1"]
interval: 1s
retries: 20
ports:
- "1433:1433"
networks:
- net
volumes:
- db-data:/var/opt/mssql


frontend-client:
build:
Expand Down

0 comments on commit 3a278d2

Please sign in to comment.