diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..1cb26c8 --- /dev/null +++ b/docker-compose.yml @@ -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