19 lines
635 B
YAML
19 lines
635 B
YAML
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
|