29 lines
830 B
YAML
29 lines
830 B
YAML
services:
|
|
sbsports:
|
|
image: git.thax.es/alexandrump/sbsports:latest
|
|
pull_policy: always
|
|
restart: unless-stopped
|
|
environment:
|
|
NODE_ENV: production
|
|
PORT: 3000
|
|
DATA_DIR: /app/data
|
|
volumes:
|
|
- sbsports-data:/app/data
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:3000/"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 30s
|
|
labels:
|
|
traefik.enable: "true"
|
|
traefik.http.routers.sbsports.entrypoints: "https"
|
|
traefik.http.routers.sbsports.rule: "Host(`sbsports.thax.es`)"
|
|
traefik.http.routers.sbsports.tls: "true"
|
|
traefik.http.routers.sbsports.service: "sbsports"
|
|
traefik.http.services.sbsports.loadbalancer.server.port: "3000"
|
|
|
|
volumes:
|
|
sbsports-data:
|
|
driver: local
|