Compare commits
No commits in common. "5dfe809eb2731c0693eefc9e5f371b3da47b7b8c" and "5fb3939bcd05feef501f95802bda3d1a137453eb" have entirely different histories.
5dfe809eb2
...
5fb3939bcd
1 changed files with 9 additions and 21 deletions
|
|
@ -19,7 +19,6 @@ services:
|
||||||
# docker build -t git.plexultra.com/dlawler489/printhive:latest .
|
# docker build -t git.plexultra.com/dlawler489/printhive:latest .
|
||||||
image: git.plexultra.com/dlawler489/printhive:latest
|
image: git.plexultra.com/dlawler489/printhive:latest
|
||||||
pull_policy: always
|
pull_policy: always
|
||||||
container_name: printhive-app # stable name for the Traefik file-provider to target
|
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
db:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|
@ -35,30 +34,19 @@ services:
|
||||||
- uploads:/app/uploads
|
- uploads:/app/uploads
|
||||||
- thumbnails:/app/thumbnails
|
- thumbnails:/app/thumbnails
|
||||||
- glb:/app/glb
|
- glb:/app/glb
|
||||||
# No host port published — Traefik auto-discovers the app on the shared network.
|
ports:
|
||||||
networks:
|
- "3000:3000"
|
||||||
- default # talk to the db
|
|
||||||
- traefik # reachable by Traefik
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
labels:
|
# Traefik (if using labels rather than your file provider):
|
||||||
- "traefik.enable=true"
|
# labels:
|
||||||
# App is on two networks; tell Traefik which one to reach it on.
|
# - "traefik.enable=true"
|
||||||
- "traefik.docker.network=${TRAEFIK_NETWORK:-traefik}"
|
# - "traefik.http.routers.printhive.rule=Host(`printhive.plexultra.com`)"
|
||||||
- "traefik.http.routers.printhive.rule=Host(`${PRINTHIVE_HOST:-printhive.plexultra.com}`)"
|
# - "traefik.http.routers.printhive.entrypoints=websecure"
|
||||||
- "traefik.http.routers.printhive.entrypoints=${TRAEFIK_ENTRYPOINT:-websecure}"
|
# - "traefik.http.routers.printhive.tls.certresolver=letsencrypt"
|
||||||
- "traefik.http.routers.printhive.tls.certresolver=${TRAEFIK_CERTRESOLVER:-letsencrypt}"
|
# - "traefik.http.services.printhive.loadbalancer.server.port=3000"
|
||||||
- "traefik.http.services.printhive.loadbalancer.server.port=3000"
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
pgdata:
|
pgdata:
|
||||||
uploads:
|
uploads:
|
||||||
thumbnails:
|
thumbnails:
|
||||||
glb:
|
glb:
|
||||||
|
|
||||||
networks:
|
|
||||||
default:
|
|
||||||
# The existing Traefik network (same one your other services use).
|
|
||||||
# Set TRAEFIK_NETWORK in Dockhand to its exact name.
|
|
||||||
traefik:
|
|
||||||
external: true
|
|
||||||
name: ${TRAEFIK_NETWORK:-traefik}
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue