-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.production.yml
71 lines (66 loc) · 2.45 KB
/
docker-compose.production.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
version: "3.5"
services:
traefik:
image: "traefik:v2.1.0"
command:
- --entrypoints.web.address=:80
- --entrypoints.secureweb.address=:443
- --providers.docker=true
- --api
- --certificatesResolvers.tls_resolver.acme.storage=/acme.json
- --certificatesResolvers.tls_resolver.acme.httpChallenge.entryPoint=web
labels:
- traefik.http.routers.http-catchall.rule=hostregexp(`{host:.+}`)
- traefik.http.routers.http-catchall.entrypoints=web
- traefik.http.routers.http-catchall.middlewares=redirect-to-https@docker
- traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https
- traefik.http.routers.dashboard.rule=Host(`traefik.${KSCHOONME_DOMAIN:-kschoon.me}`)
- traefik.http.routers.dashboard.service=api@internal
- traefik.http.routers.dashboard.tls=true
- traefik.http.routers.dashboard.tls.certresolver=tls_resolver
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "./acme.json:/acme.json"
web:
image: "kschoonme/backend:latest"
labels:
- traefik.http.routers.api.rule=Host(`api.${KSCHOONME_DOMAIN:-kschoon.me}`)
- traefik.http.routers.api.tls=true
- traefik.http.routers.api.tls.certresolver=tls_resolver
- traefik.http.services.web-kschoonme.loadbalancer.server.port=8080
env_file:
- ./backend/.env
faktory:
labels:
- traefik.http.routers.faktory.rule=Host(`faktory.${KSCHOONME_DOMAIN:-kschoon.me}`)
- traefik.http.routers.faktory.tls=true
- traefik.http.routers.faktory.tls.certresolver=tls_resolver
- traefik.http.services.faktory-kschoonme.loadbalancer.server.port=7420
env_file:
- ./.docker/faktory.env
environment:
- PRODUCTION=true
faktory_worker:
image: "kschoonme/faktory-worker:latest"
env_file:
- ./backend/.env
notifications:
image: "kschoonme/notifications:latest"
sso:
image: "kschoonme/sso:latest"
env_file:
- ./.docker/sso.env
labels:
- traefik.http.routers.sso.rule=Host(`sso.${KSCHOONME_DOMAIN:-kschoon.me}`)
- traefik.http.routers.sso.tls=true
- traefik.http.routers.sso.tls.certresolver=tls_resolver
environment:
- ISSUER=https://sso.kschoon.me
volumes:
- "./sso/src/jwks.json:/usr/src/sso/dist/jwks.json:ro"
identity:
image: "kschoonme/identity:latest"
env_file:
- ./.docker/identity.env