30 lines
787 B
YAML
Executable File
30 lines
787 B
YAML
Executable File
services:
|
|
history-dev:
|
|
container_name: history-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.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
|
|
|