micrach/docker-compose.yml

48 lines
1.4 KiB
YAML
Raw Normal View History

2021-08-28 19:56:40 +03:00
version: "3.7"
services:
app:
image: ghcr.io/yanislav-igonin/micrach-go/micrach:latest
networks:
- web
environment:
ENV: release
PORT: ${PORT}
SEED_DB: ${SEED_DB}
IS_RATE_LIMITER_ENABLED: ${IS_RATE_LIMITER_ENABLED}
THREADS_MAX_COUNT: ${THREADS_MAX_COUNT}
2021-09-05 00:48:27 +03:00
POSTGRES_URL: ${POSTGRES_URL}
2021-09-11 00:21:14 +03:00
volumes:
2021-09-11 01:01:03 +03:00
- /root/micrach-go/uploads:/app/uploads
2021-08-28 19:56:40 +03:00
deploy:
mode: global
placement:
constraints:
- node.role == manager
update_config:
parallelism: 1
delay: 10s
restart_policy:
condition: on-failure
labels:
traefik.enable: "true"
traefik.docker.network: "web"
2021-08-28 20:02:32 +03:00
traefik.http.services.micrach.loadbalancer.server.port: ${PORT}
2021-08-28 19:56:40 +03:00
traefik.http.middlewares.micrach-https-redirect.redirectscheme.scheme: "https"
traefik.http.routers.micrach.entrypoints: "http"
traefik.http.routers.micrach.rule: "Host(`micrach.igonin.dev`)"
traefik.http.routers.micrach.middlewares: "micrach-https-redirect"
traefik.http.routers.micrach-secure.entrypoints: "https"
traefik.http.routers.micrach-secure.rule: "Host(`micrach.igonin.dev`)"
traefik.http.routers.micrach-secure.tls: "true"
traefik.http.routers.micrach-secure.service: "micrach"
networks:
web:
driver: overlay
external: true