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

28 lines
735 B
YAML
Executable File

services:
history:
container_name: history
build:
context: .
target: 'production-stage'
env_file:
- ./config.env
environment:
NODE_ENV: production
command: ["node", "dist/index.js"]
restart: unless-stopped
networks:
- proxynet
labels:
- "traefik.enable=true"
- "traefik.http.routers.apihistory.rule=PathPrefix(`/history/api`)"
- "traefik.http.routers.apihistory.entrypoints=http"
- "traefik.http.routers.apihistory.service=apihistory-service"
- "traefik.http.services.apihistory-service.loadbalancer.server.port=3002"
logging:
driver: "json-file"
options:
max-size: "1m"
networks:
proxynet:
external: true