Compare commits
3 commits
5fb3939bcd
...
5dfe809eb2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5dfe809eb2 | ||
|
|
8ad25aff98 | ||
|
|
34ced61b51 |
1 changed files with 21 additions and 9 deletions
|
|
@ -19,6 +19,7 @@ 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
|
||||||
|
|
@ -34,19 +35,30 @@ services:
|
||||||
- uploads:/app/uploads
|
- uploads:/app/uploads
|
||||||
- thumbnails:/app/thumbnails
|
- thumbnails:/app/thumbnails
|
||||||
- glb:/app/glb
|
- glb:/app/glb
|
||||||
ports:
|
# No host port published — Traefik auto-discovers the app on the shared network.
|
||||||
- "3000:3000"
|
networks:
|
||||||
|
- default # talk to the db
|
||||||
|
- traefik # reachable by Traefik
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
# Traefik (if using labels rather than your file provider):
|
labels:
|
||||||
# labels:
|
- "traefik.enable=true"
|
||||||
# - "traefik.enable=true"
|
# App is on two networks; tell Traefik which one to reach it on.
|
||||||
# - "traefik.http.routers.printhive.rule=Host(`printhive.plexultra.com`)"
|
- "traefik.docker.network=${TRAEFIK_NETWORK:-traefik}"
|
||||||
# - "traefik.http.routers.printhive.entrypoints=websecure"
|
- "traefik.http.routers.printhive.rule=Host(`${PRINTHIVE_HOST:-printhive.plexultra.com}`)"
|
||||||
# - "traefik.http.routers.printhive.tls.certresolver=letsencrypt"
|
- "traefik.http.routers.printhive.entrypoints=${TRAEFIK_ENTRYPOINT:-websecure}"
|
||||||
# - "traefik.http.services.printhive.loadbalancer.server.port=3000"
|
- "traefik.http.routers.printhive.tls.certresolver=${TRAEFIK_CERTRESOLVER:-letsencrypt}"
|
||||||
|
- "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