Update docker-compose with Traefik labels and HOSTNAME
This commit is contained in:
parent
c8ae9da6e2
commit
bd407808fc
1 changed files with 19 additions and 0 deletions
19
docker-compose.yml
Normal file
19
docker-compose.yml
Normal 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
|
||||
Loading…
Reference in a new issue