28 lines
735 B
YAML
Executable File
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
|
|
|