em-shop/stocks/docker-compose.dev.yml
2024-11-20 09:53:03 +05:00

30 lines
779 B
YAML
Executable File

services:
stocks-dev:
container_name: stocks-dev
build:
context: .
target: 'develop-stage'
env_file:
- ./config.env
environment:
NODE_ENV: development
volumes:
- .:/app:rw
command: sh -c "npm install && npm run start:dev"
restart: unless-stopped
networks:
- proxynet
labels:
- "traefik.enable=true"
- "traefik.http.routers.apistocks.rule=PathPrefix(`/stocks/api`)"
- "traefik.http.routers.apistocks.entrypoints=http"
- "traefik.http.routers.apistocks.service=apistocks-service"
- "traefik.http.services.apistocks-service.loadbalancer.server.port=3001"
logging:
driver: "json-file"
options:
max-size: "1m"
networks:
proxynet:
external: true