This repository has been archived by the owner on Aug 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
45 lines (44 loc) · 1.7 KB
/
docker-compose.yml
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
36
37
38
39
40
41
42
43
44
version: "3"
services:
explorer-ui:
image: ghcr.io/vocdoni/explorer-ui:${EXPLORER_UI_TAG:-master-static}
env_file:
- .env
container_name: "explorer-ui"
labels:
- "traefik.enable=true"
- "traefik.http.routers.explorer-ui.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.explorer-ui.entrypoints=websecure"
- "traefik.http.routers.explorer-ui.tls.certresolver=le"
- "traefik.http.routers.explorer-ui.service=explorer-ui"
- "traefik.http.services.explorer-ui.loadbalancer.server.port=80"
restart: always
traefik:
image: "traefik:v2.2"
container_name: "traefik"
command:
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--entrypoints.web.http.redirections.entryPoint.to=websecure"
- "--entrypoints.web.http.redirections.entryPoint.scheme=https"
- "--entrypoints.web.http.redirections.entrypoint.permanent=true"
- "--entrypoints.websecure.address=:443"
- "--certificatesresolvers.le.acme.httpchallenge=true"
- "--certificatesresolvers.le.acme.httpchallenge.entrypoint=web"
- "--certificatesresolvers.le.acme.email=${LE_EMAIL}"
- "--certificatesresolvers.le.acme.storage=/letsencrypt/acme.json"
ports:
- "80:80"
- "443:443"
volumes:
- "./letsencrypt:/letsencrypt"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
watchtower:
image: containrrr/watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
#- /root/.docker/config.json:/config.json
labels:
- com.centurylinklabs.watchtower.enable="false"
command: --interval 30 --include-stopped --revive-stopped --cleanup