-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yml
More file actions
175 lines (167 loc) · 3.82 KB
/
Copy pathcompose.yml
File metadata and controls
175 lines (167 loc) · 3.82 KB
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
x-security: &security
security_opt:
- "no-new-privileges:true"
cap_drop:
- ALL
read_only: true
tmpfs:
- /tmp:noexec,nosuid,size=64m,mode=1777
services:
postgres:
<<: *security
image: bits-postgres:latest
read_only: false
cap_add:
- CHOWN
- DAC_OVERRIDE
- FOWNER
- SETGID
- SETUID
ports:
- target: 5432
published: 5432
protocol: tcp
mode: host
volumes:
- postgres-data:/var/lib/postgresql
healthcheck:
test:
[
"CMD",
"/app/bin/pg_isready",
"-h",
"localhost",
"-U",
"bits",
"-d",
"bits_dev",
]
interval: 2s
timeout: 5s
retries: 10
transactor:
<<: *security
image: bits-transactor:latest
ports:
- target: 4334
published: 4334
protocol: tcp
mode: host
environment:
ALT_HOST: "transactor"
DATOMIC_MEMORY_INDEX_MAX: "256m"
DATOMIC_OBJECT_CACHE_MAX: "128m"
SQL_URL: "jdbc:postgresql://postgres:5432/datomic?user=datomic&password=datomic"
depends_on:
postgres:
condition: service_healthy
jaeger:
<<: *security
image: bits-jaeger:latest
command:
- "--set=receivers.otlp.protocols.grpc.endpoint=0.0.0.0:4317"
- "--set=service.telemetry.logs.level=error"
ports:
- target: 4317
published: 4317
protocol: tcp
mode: host
- target: 16686
published: 16686
protocol: tcp
mode: host
error-pages:
<<: *security
image: bits-error-pages:latest
traefik:
<<: *security
image: bits-traefik:latest
cap_add:
- NET_BIND_SERVICE
command:
- "--entrypoints.https.address=:443"
- "--log.level=WARN"
- "--providers.file.directory=/etc/traefik/dynamic"
- "--providers.file.watch=true"
ports:
- target: 443
published: 443
protocol: tcp
mode: host
volumes:
- ./certs:/etc/traefik/certs:ro
- ./docker/traefik:/etc/traefik/dynamic:ro
depends_on:
- error-pages
nrepl:
<<: *security
image: bits-dev:latest
read_only: false
cap_add:
- CHOWN
- DAC_OVERRIDE
- SETGID
- SETUID
tmpfs:
- /tmp:exec,nosuid,size=64m,mode=1777
command:
[
"clojure",
"-M:dev:test:logging:otel:nrepl:${OS:-linux-aarch64}",
"--report",
"stderr",
"--main",
"bits.nrepl",
"--bind",
"0.0.0.0",
"--port",
"9999",
]
working_dir: /app
ports:
- target: 3000
published: 3000
protocol: tcp
mode: host
- target: 9999
published: 9999
protocol: tcp
mode: host
volumes:
- .:/app
- home:/home/bits
environment:
CLUSTER_KEYSTORE_PASSWORD: "correct-horse-battery-staple"
DATABASE_URL: "postgres://bits:please@postgres:5432/bits_dev"
DATOMIC_URI: "datomic:sql://bits?jdbc:postgresql://postgres:5432/datomic?user=datomic&password=datomic"
DOMAIN_PAGE: "bits.page.localhost"
OTEL_EXPORTER_OTLP_ENDPOINT: "http://jaeger:4317"
OTEL_LOGS_EXPORTER: "none"
OTEL_METRICS_EXPORTER: "none"
OTEL_SERVICE_NAME: "bits"
OTEL_TRACES_EXPORTER: "otlp"
PLATFORM_DOMAIN: "bits.page.localhost"
SSE_RECONNECT_MS: "50"
depends_on:
postgres:
condition: service_healthy
transactor:
condition: service_started
tailwind:
image: bits-tailwind:latest
tmpfs:
- /tmp:exec,size=64m,mode=1777
command:
[
"--watch=always",
"--input",
"resources/tailwind.css",
"--output",
"resources/public/app.css",
]
working_dir: /app
volumes:
- .:/app
volumes:
home:
postgres-data: