-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.vault.yml
57 lines (53 loc) · 1.49 KB
/
compose.vault.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
55
56
57
services:
swh-vault-db:
image: postgres:16
environment:
POSTGRES_PASSWORD: testpassword
POSTGRES_DB: swh-vault
volumes:
- "./services/initdb.d:/docker-entrypoint-initdb.d"
swh-vault:
image: swh/stack:${SWH_IMAGE_TAG:-latest}
build: ./
env_file:
- ./env/common_python.env
environment:
POSTGRES_DB: swh-vault
RPC_PORT: 5005
command: rpc
healthcheck:
test: curl -f http://localhost:5005 || exit 1
retries: 6
depends_on:
- swh-vault-db
- swh-objstorage
- swh-storage-public
- swh-scheduler
- prometheus-statsd-exporter
- nginx
volumes:
- "./conf/vault.yml:/srv/softwareheritage/config.yml.in:ro"
- "./services/swh-vault/entrypoint.sh:/srv/softwareheritage/entrypoint.sh:ro"
swh-vault-worker:
image: swh/stack:${SWH_IMAGE_TAG:-latest}
build: ./
command: worker
env_file:
- ./env/common_python.env
- ./env/workers.env
environment:
SWH_SCHEDULER_HOST: swh-scheduler
SWH_SCHEDULER_INSTANCE: http://nginx/rpc/scheduler/
depends_on:
- swh-vault
- swh-storage
- nginx
volumes:
- "./conf/vault-worker.yml:/srv/softwareheritage/config.yml:ro"
- "./services/swh-vault/entrypoint.sh:/srv/softwareheritage/entrypoint.sh:ro"
swh-scheduler-runner:
environment:
WORKER_INSTANCES: listers, loader, vault
swh-scheduler-runner-priority:
environment:
WORKER_INSTANCES: listers, loader, vault