-
Notifications
You must be signed in to change notification settings - Fork 16
/
docker-compose.yml
44 lines (38 loc) · 979 Bytes
/
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
services:
cre:
build: .
command: cre
networks:
- cuneiform-net
hostname: cre_host # the worker connects to cre@[hostname]
cfl_wrk:
build: .
command: cfl_wrk -c cre@cre_host -w /tmp/_cuneiform/wrk -r /opt/_cuneiform/repo -d /opt/_cuneiform/data
volumes:
- type: volume
source: repo-vol
target: /opt/_cuneiform/repo
- type: volume
source: data-vol
target: /opt/_cuneiform/data
read_only: true
networks:
- cuneiform-net
depends_on:
- cre
deploy:
mode: replicated
replicas: 2 # 2 replicas
cpus: 4 # each with 4 cores makes 8 worker processes
cfl_client: # the cfl_client process starts a Cuneiform shell and then immediately exits
build: .
command: cfl_client -c cre@cre_host
networks:
- cuneiform-net
depends_on:
- cre
networks:
cuneiform-net:
volumes:
repo-vol:
data-vol: