36 lines
746 B
YAML
36 lines
746 B
YAML
services:
|
|
budgetapp-api:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.api
|
|
ports:
|
|
- "8080:8080"
|
|
environment:
|
|
ASPNETCORE_ENVIRONMENT: Production
|
|
ConnectionStrings__MainDatabase: ${ConnectionStrings__MainDatabase}
|
|
networks:
|
|
- budgetapp
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "wget -qO- http://localhost:8080/ping || exit 1"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 15s
|
|
restart: unless-stopped
|
|
|
|
budgetapp-web:
|
|
build:
|
|
context: ./BudgetApp.Web
|
|
dockerfile: Dockerfile.web
|
|
ports:
|
|
- "3100:80"
|
|
networks:
|
|
- budgetapp
|
|
depends_on:
|
|
- budgetapp-api
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
budgetapp:
|
|
driver: bridge
|