29 lines
664 B
YAML
29 lines
664 B
YAML
|
|
services:
|
||
|
|
worktracker:
|
||
|
|
build:
|
||
|
|
context: .
|
||
|
|
dockerfile: Dockerfile
|
||
|
|
image: ${IMAGE_REGISTRY:-worktracker}:${IMAGE_TAG:-latest}
|
||
|
|
environment:
|
||
|
|
ASPNETCORE_ENVIRONMENT: Production
|
||
|
|
UseHttpsRedirection: "false"
|
||
|
|
MongoDb__ConnectionString: mongodb://mongo:27017
|
||
|
|
ports:
|
||
|
|
- "8002:8080"
|
||
|
|
depends_on:
|
||
|
|
- mongo
|
||
|
|
restart: unless-stopped
|
||
|
|
healthcheck:
|
||
|
|
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:8080/ >/dev/null 2>&1 || exit 1"]
|
||
|
|
interval: 30s
|
||
|
|
timeout: 5s
|
||
|
|
retries: 3
|
||
|
|
|
||
|
|
mongo:
|
||
|
|
image: mongo:7
|
||
|
|
restart: unless-stopped
|
||
|
|
volumes:
|
||
|
|
- mongo_data:/data/db
|
||
|
|
|
||
|
|
volumes:
|
||
|
|
mongo_data:
|