summaryrefslogtreecommitdiff
path: root/playbooks/roles/ansicolor/templates/stacks/docker-compose.yml
blob: 7a0f6ec1ffc8ec50a41e414a055bb01707489b9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
services:
  ansicolor:
    image: oci.liz.coffee/emprespresso/ansicolor:release
    environment:
      - TZ={{ timezone }}
      - DEPLOYMENT_TIME={{ deployment_time }}
    networks:
      - proxy
    healthcheck:
      test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:80 || exit 1"]
      timeout: 15s
      interval: 30s
      retries: 3
      start_period: 5s
    deploy:
      mode: replicated
      update_config:
        parallelism: 1
        failure_action: rollback
        order: start-first
        delay: 5s
        monitor: 30s
      replicas: 1
      labels:
        - traefik.enable=true
        - traefik.swarm.network=proxy
        - traefik.http.routers.ansicolor.tls=true
        - traefik.http.routers.ansicolor.tls.certResolver=letsencrypt
        - traefik.http.routers.ansicolor.rule=Host(`{{ ansicolor_domain }}`)
        - traefik.http.routers.ansicolor.entrypoints=websecure
        - traefik.http.services.ansicolor.loadbalancer.server.port=80

networks:
  proxy:
    external: true