forked from bytecodealliance/registry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
34 lines (34 loc) · 1.03 KB
/
docker-compose.yaml
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
# Base in-memory configuration for the registry service
services:
import-secrets:
container_name: import-secrets
image: debian:bullseye-slim
command: ["cp", "-v", "-R", "-T", "/src/secrets/warg", "/var/secrets/warg"]
volumes:
- warg-secrets:/var/secrets/warg:rw
- ./infra/local/.secrets:/src/secrets/warg:ro
warg-registry:
build:
target: warg-server
args:
- FEATURES=postgres
ports:
- '${WARG_SERVER_LISTEN_ADDRESS?e.g., 127.0.0.1:17513}:8090'
# Set the base settings with environment variables.
# NOTE: Test for cli environment variables support.
environment:
- WARG_CONTENT_DIR=/var/run/warg/server-content
- WARG_OPERATOR_KEY_FILE=/var/secrets/warg/operator_key
volumes:
- warg-server-content:/var/run/warg/server-content:rw
- warg-secrets:/var/secrets/warg:ro
networks:
- infra
depends_on:
import-secrets:
condition: service_completed_successfully
volumes:
warg-server-content:
warg-secrets:
networks:
infra: