chore: replace nginx proxy with direct Traefik routing on two domains

This commit is contained in:
2026-05-15 02:13:32 +02:00
parent 1a1ba3da63
commit f387be43fb
3 changed files with 11 additions and 60 deletions

View File

@@ -43,6 +43,15 @@ services:
networks:
- internal
- nats
- traefik
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik"
- "traefik.http.routers.thoughts-api.rule=Host(`api.thoughts.gabrielkaszewski.dev`)"
- "traefik.http.routers.thoughts-api.entrypoints=web,websecure"
- "traefik.http.routers.thoughts-api.tls.certresolver=letsencrypt"
- "traefik.http.routers.thoughts-api.service=thoughts-api"
- "traefik.http.services.thoughts-api.loadbalancer.server.port=8000"
worker:
container_name: thoughts-worker
@@ -67,6 +76,7 @@ services:
restart: unless-stopped
environment:
NEXT_PUBLIC_SERVER_SIDE_API_URL: http://api:8000
NEXT_PUBLIC_API_URL: https://api.thoughts.gabrielkaszewski.dev
PORT: 3000
HOSTNAME: 0.0.0.0
depends_on:
@@ -79,18 +89,6 @@ services:
retries: 5
networks:
- internal
proxy:
container_name: thoughts-proxy
image: custom-proxy:latest
restart: unless-stopped
depends_on:
frontend:
condition: service_healthy
api:
condition: service_healthy
networks:
- internal
- traefik
labels:
- "traefik.enable=true"
@@ -99,7 +97,7 @@ services:
- "traefik.http.routers.thoughts.entrypoints=web,websecure"
- "traefik.http.routers.thoughts.tls.certresolver=letsencrypt"
- "traefik.http.routers.thoughts.service=thoughts"
- "traefik.http.services.thoughts.loadbalancer.server.port=80"
- "traefik.http.services.thoughts.loadbalancer.server.port=3000"
volumes:
postgres_data: