Files
TicketingSystem/docker-compose.yml
josh 8b0273e70b
All checks were successful
Build & Push / Build Server (push) Successful in 52s
Build & Push / Build Client (push) Successful in 39s
Remove Traefik — use simple port binding for NPM
Stack uses Tailscale + Nginx Proxy Manager, not Traefik.
Client exposes PORT (default 3080) for NPM to proxy to.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-30 19:51:49 -04:00

55 lines
1.2 KiB
YAML

# TicketingSystem — Production
# Copy this file + .env to your server, then:
# docker compose pull && docker compose up -d
# First deploy only:
# docker compose exec server npm run db:seed
services:
postgres:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_DB: ticketing
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
networks:
- internal
server:
image: ${REGISTRY}/josh/ticketing-server:${TAG:-latest}
restart: unless-stopped
environment:
DATABASE_URL: postgresql://postgres:${POSTGRES_PASSWORD}@postgres:5432/ticketing
JWT_SECRET: ${JWT_SECRET}
CLIENT_URL: ${CLIENT_URL}
PORT: 3000
depends_on:
postgres:
condition: service_healthy
networks:
- internal
client:
image: ${REGISTRY}/josh/ticketing-client:${TAG:-latest}
restart: unless-stopped
ports:
- "${PORT:-3080}:80"
depends_on:
- server
networks:
- internal
networks:
internal:
driver: bridge
volumes:
postgres_data: