Added a docker image and compose file for the application

This commit is contained in:
Vincent Allen
2025-09-03 13:28:56 -04:00
parent d0429ddaf4
commit 9a0661e985
192 changed files with 5369 additions and 96 deletions

33
docker-compose.yml Normal file
View File

@@ -0,0 +1,33 @@
services:
openarchival.blazor:
image: ${DOCKER_REGISTRY-}openarchivalblazor
build:
context: .
dockerfile: OpenArchival.Blazor/Dockerfile
environment:
- ConnectionStrings__DefaultConnection=Host=db;Port=5432;Database=postgres;Username=postgres;Password=postgres
depends_on:
db:
condition: service_healthy
db:
image: postgres:latest
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
ports:
- 5432:5432
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d postgres"]
interval: 10s
timeout: 5s
retries: 5
volumes:
postgres_data: