Skip to content

Commit

Permalink
feat: add restart strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
danielNg91 committed Oct 24, 2023
1 parent 9c33ad9 commit 7554164
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,24 @@ version: "3.3"
services:
ghub-api:
container_name: ghub-api
environment:
- AppSettings__ConnectionStrings__DefaultConnection=Server=mssql,1433;Database=GHub;User Id=sa;Password=e@x2Prn9mj4zU3ap8WV7ckNK;
build:
context: .
dockerfile: ./Dockerfile
depends_on: [ mssql ]
environment:
- AppSettings__ConnectionStrings__DefaultConnection=Server=mssql,1433;Database=GHub;User Id=sa;Password=e@zx2Prn9mj4zU3ap8WV7ckNK;
ports:
- "8080:80"
restart: unless-stopped
mssql:
image: "mcr.microsoft.com/mssql/server:2019-latest"
user: root
container_name: mssql
hostname: mssql
environment:
SA_PASSWORD: "e@x2Prn9mj4zU3ap8WV7ckNK"
ACCEPT_EULA: "Y"
restart: unless-stopped
user: root
volumes:
- mssql_volume:/var/opt/mssql/data
- mssql_volume:/var/backups
Expand Down

0 comments on commit 7554164

Please sign in to comment.