feat: Initial minimal docker compose and updates to release workflows.
Some checks failed
CI / Linux Tests (push) Has been cancelled
Some checks failed
CI / Linux Tests (push) Has been cancelled
This commit is contained in:
22
docker/docker-compose.yaml
Normal file
22
docker/docker-compose.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
services:
|
||||
db:
|
||||
image: docker.io/postgres:18
|
||||
restart: unless-stopped
|
||||
env_file: .env
|
||||
volumes:
|
||||
- ./data:/var/lib/postgresql
|
||||
|
||||
app:
|
||||
image: ghcr.io/m-housh/ductcalc:latest
|
||||
restart: unless-stopped
|
||||
env_file: .env
|
||||
depends_on:
|
||||
- db
|
||||
ports:
|
||||
- 8080:8080
|
||||
healthcheck:
|
||||
test: curl --fail --silent http://0.0.0.0:8080/health || exit 1
|
||||
interval: 1m
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
20
docker/example.env
Normal file
20
docker/example.env
Normal file
@@ -0,0 +1,20 @@
|
||||
# Shared with database & app
|
||||
POSTGRES_USER=ductcalc
|
||||
POSTGRES_PASSWORD=super-secret-change-me
|
||||
POSTGRES_DB=ductcalc
|
||||
|
||||
# App only
|
||||
#
|
||||
POSTGRES_HOSTNAME=db
|
||||
|
||||
# If using sqlite not postgres
|
||||
#SQLITE_PATH=db.sqlite
|
||||
|
||||
# Set the pdf engine to use, this generally does not
|
||||
# need set, unless extending the base image.
|
||||
#PDF_ENGINE=weasyprint
|
||||
|
||||
# Set the path to the pandoc executable. This generally
|
||||
# does not need set, unless extending the base image.
|
||||
#PANDOC_PATH=/usr/bin/pandoc
|
||||
|
||||
Reference in New Issue
Block a user