Update docker-compose with Traefik labels and HOSTNAME

This commit is contained in:
GoHorse Deploy 2026-02-09 21:52:06 +00:00
parent c8ae9da6e2
commit bd407808fc

19
docker-compose.yml Normal file
View file

@ -0,0 +1,19 @@
services:
frontend:
image: node:20-alpine
working_dir: /app
volumes:
- ./frontend:/app
command: sh -c "npm install && npm run dev -- -p 3000"
ports:
- "3005:3000"
environment:
- NEXT_PUBLIC_API_URL=http://gohorse-backend.dokku.rede5.com.br
- HOST=0.0.0.0
- HOSTNAME=0.0.0.0
labels:
- "traefik.enable=true"
- "traefik.http.routers.gohorse-frontend.rule=Host(`dev.gohorsejobs.com`)"
- "traefik.http.services.gohorse-frontend.loadbalancer.server.port=3000"
- "traefik.http.routers.gohorse-frontend.entrypoints=web"
restart: always