feat: add docker-compose orchestration for full stack deployment
This commit is contained in:
parent
d8a45c2acf
commit
256ecee7bf
35
docker-compose.yml
Normal file
35
docker-compose.yml
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
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
|
||||||
Loading…
Reference in New Issue
Block a user