forked from netsys-lab/scion-ca
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (56 loc) · 1.9 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
55
56
version: "3.3"
services:
scion-step-proxy:
# Listens on port 3000
build: scion-step-proxy
# image: scion-step-proxy # For running on remote without cloning the full repo
network_mode: host
command: -seedFile=/etc/step-ca/seeds.json -jwtSecrect=/etc/step-ca/jwt-secret.pem -trcPath=/etc/scion/certs -certDuration=72h
volumes:
- "./step-ca:/etc/step-ca"
- "./step-ca:/etc/scion/certs"
environment:
- "DATABASE_PATH=/etc/step-ca/step-proxy.sqlite"
- "DATABASE=sqlite"
smallstep-ca-scion:
build: smallstep-ca-scion
# image: smallstep-ca-scion # For running on remote without cloning the full repo
network_mode: host
depends_on:
- smallstep-cli-scion
command: --password-file=/etc/step-ca/scion-ca.pw /root/.step/config/ca.json
restart: on-failure:10
volumes:
- "./step-ca:/etc/step-ca"
- "./step-ca/.step:/root/.step/"
env_file:
- .env
smallstep-cli-scion:
build: smallstep-cli-scion
# image: smallstep-cli-scion # For running on remote without cloning the full repo
network_mode: host
command: "bash -c /startup.sh"
env_file:
- .env
volumes:
- "./step-ca:/etc/step-ca"
- "./step-internal:/etc/step-internal"
- "./etc/scion:/etc/scion"
- "./startup.sh:/startup.sh"
caddy:
image: caddy/caddy:2.6.4-alpine
network_mode: host
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- ./data/caddy/data:/data
- ./data/caddy/config:/config
- /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt # Adds own trusted root cert to caddy
restart: unless-stopped
step-ca:
build: smallstep-ca
command: --password-file=/etc/step-internal/step-ca.pw /root/.step/config/ca.json
# image: smallstep-ca
network_mode: host
volumes:
- "./step-internal/:/etc/step-internal/"
- "./step-internal/.step:/root/.step/"