mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 10:42:08 +00:00
Add WebAPI controllers for beers, breweries, and users; update Docker configuration and .gitignore
This commit is contained in:
@@ -5,19 +5,32 @@ services:
|
||||
container_name: sqlserver
|
||||
environment:
|
||||
ACCEPT_EULA: "Y"
|
||||
MSSQL_SA_PASSWORD: "YourStrong!Passw0rd"
|
||||
SA_PASSWORD: "YourStrong!Passw0rd"
|
||||
ports:
|
||||
- "1433:1433"
|
||||
volumes:
|
||||
- sqlserverdata:/var/opt/mssql
|
||||
healthcheck:
|
||||
test: [ "CMD", "/opt/mssql-tools18/bin/sqlcmd", "-C", "-S", "localhost", "-U", "sa", "-P", "YourStrong!Passw0rd", "-Q", "SELECT 1" ]
|
||||
test: [ "CMD", "/opt/mssql-tools/bin/sqlcmd", "-S", "localhost", "-U", "sa", "-P", "YourStrong!Passw0rd", "-Q", "SELECT 1" ]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 12
|
||||
networks:
|
||||
- devnet
|
||||
|
||||
redis:
|
||||
image: redis:7
|
||||
container_name: redis
|
||||
ports:
|
||||
- "6379:6379"
|
||||
networks:
|
||||
- devnet
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
dotnet:
|
||||
image: mcr.microsoft.com/dotnet/sdk:9.0
|
||||
container_name: dotnet-sdk
|
||||
@@ -32,7 +45,8 @@ services:
|
||||
DOTNET_CLI_TELEMETRY_OPTOUT: "1"
|
||||
HOME: /home/dev
|
||||
USER: dev
|
||||
DB_CONNECTION_STRING: "Server=sqlserver,1433;User Id=sa;Password=YourStrong!Passw0rd;Encrypt=True;TrustServerCertificate=True;Connection Timeout=30;"
|
||||
DB_CONNECTION_STRING: "Server=sqlserver,1433;User Id=sa;Password=YourStrong!Passw0rd;Encrypt=True;TrustServerCertificate=True;Connection Timeout=30;Database=Biergarten;"
|
||||
REDIS_URL: "redis:6379"
|
||||
user: root
|
||||
networks:
|
||||
- devnet
|
||||
|
||||
Reference in New Issue
Block a user