Docker
depends_on
Start containers automatically
timezone
docker-compose.yml
version: "x.x"
services:
app:
image: "aspnetapp"
volumes:
- "./appsettings.json:/app/appsettings.json"
Dockerfile
version: "x.x"
services:
caddy:
image: "caddy"
ports:
- "80:80"
- "443:443"
volumes:
- "./Caddyfile:/etc/caddy/Caddyfile"
- "caddy_data:/data"
volumes:
caddy_data:
Caddyfile
version: "x.x"
services:
mssql:
image: "mcr.microsoft.com/mssql/server:2022-latest"
environment:
ACCEPT_EULA: "Y"
# MSSQL_PID: "Express"
SA_PASSWORD: "password"
ports:
- "1433:1433"
volumes:
- "./mssql/data:/var/opt/mssql/data"
- "./mssql/log:/var/opt/mssql/log"
- "./mssql/secrets:/var/opt/mssql/secrets"