-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
44 lines (44 loc) · 1.68 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:
vocdoni-ui:
image: ghcr.io/vocdoni/vocdoni-ui:${VOCDONI_UI_TAG:-main}
env_file:
- .env
container_name: "vocdoni-ui"
labels:
- "traefik.enable=true"
- "traefik.http.routers.bootnodes.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.bootnodes.entrypoints=websecure"
- "traefik.http.routers.bootnodes.tls.certresolver=le"
- "traefik.http.routers.bootnodes.service=bootnodes"
- "traefik.http.services.bootnodes.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