-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
30 lines (28 loc) · 891 Bytes
/
docker-compose.yml
File metadata and controls
30 lines (28 loc) · 891 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# do export MSSQL_SA_PASSWORD="YourStrongPassword" before running docker-compose up
# do export USER_SECRETS_ID="UserSecretsId" before running docker-compose up (this is the same as the one in the .csproj file)
version: '3.9'
services:
app:
build:
context: .
dockerfile: Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Development
volumes:
- $APPDATA/Microsoft/UserSecrets/$USER_SECRETS_ID:/root/.microsoft/usersecrets/$USER_SECRETS_ID
# - $HOME/.microsoft/usersecrets/$USER_SECRETS_ID:/root/.microsoft/usersecrets/$USER_SECRETS_ID # for linux
ports:
- '5250:80'
depends_on:
- db
db:
image: mcr.microsoft.com/mssql/server:2022-latest
environment:
ACCEPT_EULA: Y
MSSQL_SA_PASSWORD: $MSSQL_SA_PASSWORD
volumes:
- gamestoredb:/var/opt/mssql
ports:
- '1433:1433'
volumes:
gamestoredb: