-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
54 lines (50 loc) · 1.1 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.7"
x-env: &env
NAME: "balanced"
NETWORK_NAME: "mainnet"
POSTGRES_SERVER: "postgres"
services:
balanced-api:
build:
context: ${BALANCED_CONTEXT:-.}
args:
- SERVICE_NAME=api
ports:
- "8000:8000" # API
- "8180:8180" # Health
- "9400:9400" # Prometheus
security_opt:
- "seccomp:unconfined"
cap_add:
- SYS_PTRACE
volumes:
- ${BALANCED_CONTEXT:-.}/balanced_backend:/app
environment:
<<: *env
balanced-cron:
build:
context: ${BALANCED_CONTEXT:-.}
args:
- SERVICE_NAME=cron
security_opt:
- "seccomp:unconfined"
cap_add:
- SYS_PTRACE
volumes:
- ${BALANCED_CONTEXT:-.}/balanced_backend:/app
environment:
<<: *env
balanced-streaming:
build:
context: ${BALANCED_CONTEXT:-./.}
dockerfile: Dockerfile.streaming
args:
- SERVICE_NAME=streaming
security_opt:
- "seccomp:unconfined"
cap_add:
- SYS_PTRACE
volumes:
- ${BALANCED_CONTEXT:-.}/balanced_backend:/app
environment:
<<: *env