Some checks failed
build-and-push / docker (push) Failing after 53s
On push to main (and v* tags), builds the Docker image and pushes it to the Forgejo container registry at git.plexultra.com/dlawler489/printhive (:latest and :<short-sha>). Uses the auto-provided Actions token with packages:write; plain docker CLI so it only needs the checkout action. Compose image reference updated to the Forgejo registry. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
50 lines
1.5 KiB
YAML
50 lines
1.5 KiB
YAML
services:
|
|
db:
|
|
image: postgres:16-alpine
|
|
environment:
|
|
POSTGRES_USER: printhive
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-printhive}
|
|
POSTGRES_DB: printhive
|
|
volumes:
|
|
- pgdata:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U printhive -d printhive"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 10
|
|
restart: unless-stopped
|
|
|
|
app:
|
|
build: .
|
|
image: git.plexultra.com/dlawler489/printhive:latest
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
environment:
|
|
DATABASE_URL: postgres://printhive:${POSTGRES_PASSWORD:-printhive}@db:5432/printhive
|
|
PORT: 3000
|
|
# Optional — these can also be set in the app's Settings menu (stored in the DB).
|
|
THINGIVERSE_TOKEN: ${THINGIVERSE_TOKEN:-}
|
|
FLARESOLVERR_URL: ${FLARESOLVERR_URL:-}
|
|
MAKERWORLD_TOKEN: ${MAKERWORLD_TOKEN:-}
|
|
PRINTABLES_TOKEN: ${PRINTABLES_TOKEN:-}
|
|
volumes:
|
|
- uploads:/app/uploads
|
|
- thumbnails:/app/thumbnails
|
|
- glb:/app/glb
|
|
ports:
|
|
- "3000:3000"
|
|
restart: unless-stopped
|
|
# Traefik (if using labels rather than your file provider):
|
|
# labels:
|
|
# - "traefik.enable=true"
|
|
# - "traefik.http.routers.printhive.rule=Host(`printhive.plexultra.com`)"
|
|
# - "traefik.http.routers.printhive.entrypoints=websecure"
|
|
# - "traefik.http.routers.printhive.tls.certresolver=letsencrypt"
|
|
# - "traefik.http.services.printhive.loadbalancer.server.port=3000"
|
|
|
|
volumes:
|
|
pgdata:
|
|
uploads:
|
|
thumbnails:
|
|
glb:
|