-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.prod.yaml
123 lines (106 loc) · 3.09 KB
/
docker-compose.prod.yaml
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
version: "3.9"
x-logging: &logging
driver: loki
options:
loki-url: "$LOKI_URL"
loki-external-labels: "container_name={{.Name}}"
loki-pipeline-stages: |
- multiline:
firstline: '^[a-zA-Z0-9\[\{\(]'
services:
traefik:
logging: *logging
extends:
file: "./docker-compose.shared.yaml"
service: "traefik"
command:
- "--accesslog=true"
- "--accesslog.fields.headers.names.x-correlation-id=keep"
- "--accesslog.format=json"
- "--log.format=json"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.webinsecure.address=:80"
- "--entrypoints.webinsecure.http.redirections.entrypoint.to=web"
- "--entrypoints.webinsecure.http.redirections.entrypoint.scheme=https"
- "--entrypoints.web.address=:443"
- "--entrypoints.web.http.tls.certresolver=letsencrypt"
- "--certificatesresolvers.letsencrypt.acme.httpchallenge=true"
- "--certificatesresolvers.letsencrypt.acme.httpchallenge.entrypoint=webinsecure"
- "--certificatesresolvers.letsencrypt.acme.email=$EMAIL"
- "--certificatesresolvers.letsencrypt.acme.storage=/letsencrypt/acme.json"
# Adds correlation id
- "--tracing.jaeger.samplingparam=0"
- "--tracing.jaeger.tracecontextheadername=x-correlation-id"
ports:
- "80:80"
- "443:443"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "$PWD/.data/letsencrypt:/letsencrypt"
api:
logging: *logging
extends:
file: "./docker-compose.shared.yaml"
service: "api"
image: ghcr.io/johanbook/meet/api:latest
auth-api:
logging: *logging
extends:
file: "./docker-compose.shared.yaml"
service: "auth-api"
image: ghcr.io/johanbook/meet/auth-api:latest
auth-ui:
logging: *logging
extends:
file: "./docker-compose.shared.yaml"
service: "auth-ui"
image: ghcr.io/johanbook/meet/auth-ui:latest
console:
logging: *logging
extends:
file: "./docker-compose.shared.yaml"
service: "console"
db:
logging: *logging
extends:
file: "./docker-compose.shared.yaml"
service: "db"
minio:
logging: *logging
extends:
file: "./docker-compose.shared.yaml"
service: "minio"
pgadmin:
logging: *logging
extends:
file: "./docker-compose.shared.yaml"
service: "pgadmin"
supertokens:
logging: *logging
extends:
file: "./docker-compose.shared.yaml"
service: "supertokens"
tracking:
logging: *logging
extends:
file: "./docker-compose.shared.yaml"
service: "tracking"
image: ghcr.io/johanbook/meet/tracking:latest
watchtower:
logging: *logging
image: containrrr/watchtower
container_name: watchtower
command:
- "--cleanup"
- "--schedule"
- "0 0 * * * *"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
web-ui:
logging: *logging
extends:
file: "./docker-compose.shared.yaml"
service: "web-ui"
image: ghcr.io/johanbook/meet/web-ui:latest