forked from chainorders/concordium-rwa
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
54 lines (51 loc) · 1.08 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
45
46
47
48
49
50
51
52
53
54
version: '3.8'
volumes:
postgres-data:
cargo:
rustup:
services:
backend:
build:
context: .
dockerfile: Dockerfile
args:
VARIANT: bookworm # use bullseye on apple silicon
CARGO_HOME: /usr/local/cargo
RUSTUP_HOME: /usr/local/rustup
env_file:
- .env
environment:
- JAEGER_HOST=http://jaeger:4317/v1/traces
command: sleep infinity
network_mode: service:db
security_opt:
- seccomp:unconfined
cap_add:
- SYS_PTRACE
volumes:
- ../..:/workspace:cached
- cargo:/usr/local/cargo
- rustup:/usr/local/rustup
deploy:
resources:
limits:
memory: 25G
db:
image: postgres:14-alpine
restart: unless-stopped
env_file:
- .env
environment:
- PG_DATA=/var/lib/progresql/data
volumes:
- postgres-data:/var/lib/progresql/data
jaeger:
image: jaegertracing/all-in-one:latest
restart: unless-stopped
env_file:
- .env
environment:
- COLLECTOR_OTLP_ENABLED=true
ports:
- 5778:5778
- 16686:16686