2021-06-25 12:18:25 +02:00
|
|
|
version: "3.3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
traefik:
|
|
|
|
image: "traefik:v2.4"
|
|
|
|
command:
|
|
|
|
#- "--log.level=DEBUG"
|
2021-06-25 21:21:58 +02:00
|
|
|
- "--api.insecure=false"
|
2021-06-25 12:18:25 +02:00
|
|
|
- "--providers.docker=true"
|
|
|
|
- "--providers.docker.exposedbydefault=false"
|
2021-06-25 21:21:58 +02:00
|
|
|
- "--entrypoints.web.address=:80"
|
2021-06-25 12:18:25 +02:00
|
|
|
- "--entrypoints.websecure.address=:443"
|
|
|
|
- "--certificatesresolvers.myresolver.acme.tlschallenge=true"
|
2021-06-25 21:21:58 +02:00
|
|
|
- "--certificatesresolvers.myresolver.acme.httpchallenge.entrypoint=web"
|
2021-06-25 12:18:25 +02:00
|
|
|
#- "--certificatesresolvers.myresolver.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory"
|
|
|
|
- "--certificatesresolvers.myresolver.acme.email=marvin.sextro@gmail.com"
|
|
|
|
- "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json"
|
2021-06-27 00:39:19 +02:00
|
|
|
- "--entrypoints.web.http.redirections.entryPoint.to=websecure"
|
|
|
|
- "--entrypoints.web.http.redirections.entryPoint.scheme=https"
|
|
|
|
- "--entrypoints.web.http.redirections.entrypoint.permanent=true"
|
2021-06-25 12:18:25 +02:00
|
|
|
ports:
|
2021-06-27 00:39:19 +02:00
|
|
|
- "80:80"
|
2021-06-25 12:18:25 +02:00
|
|
|
- "443:443"
|
|
|
|
- "8080:8080"
|
|
|
|
volumes:
|
|
|
|
- "./letsencrypt:/letsencrypt"
|
2021-06-27 00:39:19 +02:00
|
|
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
2021-06-25 12:18:25 +02:00
|
|
|
|
|
|
|
covidpass-api:
|
2021-06-25 21:21:58 +02:00
|
|
|
image: "marvinsxtr/covidpass-api:latest"
|
2021-06-25 12:18:25 +02:00
|
|
|
restart: "unless-stopped"
|
|
|
|
environment:
|
|
|
|
- NODE_ENV=production
|
|
|
|
ports:
|
2021-06-25 21:21:58 +02:00
|
|
|
- "8000:8000"
|
2021-06-25 12:18:25 +02:00
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.covidpass-api.rule=Host(`api.covidpass.marvinsextro.de`)"
|
|
|
|
- "traefik.http.routers.covidpass-api.entrypoints=websecure"
|
|
|
|
- "traefik.http.routers.covidpass-api.tls.certresolver=myresolver"
|
2021-06-25 21:21:58 +02:00
|
|
|
secrets:
|
|
|
|
- env
|
2021-06-25 12:18:25 +02:00
|
|
|
|
2021-06-25 21:21:58 +02:00
|
|
|
covidpass:
|
|
|
|
image: "marvinsxtr/covidpass:latest"
|
|
|
|
restart: "unless-stopped"
|
|
|
|
environment:
|
|
|
|
- NODE_ENV=production
|
|
|
|
ports:
|
|
|
|
- "3000:3000"
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.covidpass.rule=Host(`covidpass.marvinsextro.de`)"
|
|
|
|
- "traefik.http.routers.covidpass.entrypoints=websecure"
|
|
|
|
- "traefik.http.routers.covidpass.tls.certresolver=myresolver"
|
|
|
|
depends_on:
|
|
|
|
- covidpass-api
|
|
|
|
|
|
|
|
secrets:
|
|
|
|
env:
|
|
|
|
file: ./.env
|