-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
55 lines (55 loc) · 2.15 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
version: '3.7'
services:
bk-sshd:
image: waggle/beekeeper-sshd:latest
build: bk-sshd
restart: always
environment:
# e.g. SSHD_FLAGS="-ddd"
SSHD_FLAGS: ""
KEY_GEN_TYPE: ${KEY_GEN_TYPE}
KEY_GEN_ARGS: ${KEY_GEN_ARGS}
USE_CONFIG_VOLUME: ${USE_CONFIG_VOLUME}
# see .env
volumes:
- ./beekeeper-keys/bk-admin-ssh-key/admin.pem.pub:/root/.ssh/authorized_keys:ro
- ./beekeeper-keys/bk-server-key/:/usr/lib/waggle/bk-server:ro # for HostKey and HostCertificate
- ./beekeeper-keys/bk-ca/beekeeper_ca_key.pub:/usr/lib/waggle/certca/beekeeper_ca_key.pub #TrustedUserCAKeys
bk-api:
image: waggle/beekeeper-api:latest
build: bk-api
restart: always
depends_on:
- db
env_file:
- mysql.env
- .env
volumes:
- ./beekeeper-keys/bk-admin-ssh-key/admin.pem:/config/admin-key/admin.pem:ro
#- ${HOME}/git/waggle-edge-stack/.vagrant/machines/default/virtualbox/private_key:/config/nodes/nodes.pem:ro
- ./beekeeper-keys/node-ssh-key/nodes.pem:/config/nodes/nodes.pem:ro
- ./test-data:/test-data/:ro
- ./bk-api:/usr/src/app # for easier development
- ./beekeeper-keys/bk-server-key/:/usr/lib/waggle/bk-server:ro # for HostKey
- ./beekeeper-keys/bk-ca/:/usr/lib/waggle/certca:ro # CA needed for signing
ports:
- "127.0.0.1:5000:5000" # for testing purposes
db:
image: mysql:8.0.29
restart: always
env_file: mysql.env
volumes:
- ./schema.sql:/docker-entrypoint-initdb.d/init.sql
node1:
image: waggle/node-platforms:0.3.0
restart: always
volumes:
- ./beekeeper-keys/registration_certs/untilforever/registration:/etc/waggle/sage_registration_readonly:ro
- ./beekeeper-keys/registration_certs/untilforever/registration-cert.pub:/etc/waggle/sage_registration-cert.pub_readonly:ro
# for /etc/ssh/ssh_known_hosts:
- ./beekeeper-keys/bk-ca/beekeeper_ca_key.pub:/etc/waggle/beekeeper_ca_key.pub:ro
# so beekeeper can ssh into it:
- ./beekeeper-keys/node-ssh-key/nodes.pem.pub:/root/.ssh/authorized_keys:ro
environment:
- WAGGLE_NODE_ID=0000000000000001
- WAGGLE_NODE_VSN=V001