-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
56 lines (51 loc) · 1.41 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
version: '3'
services:
rabbitmq:
container_name: 2k_rabbitmq
image: rabbitmq:3-management-alpine
ports:
- '127.0.0.1:5672:5672'
- '127.0.0.1:15672:15672'
surrealdb:
image: surrealdb/surrealdb:latest
container_name: 2k_surrealdb
command: start --user tookey --pass tookey file:/data/database.db
ports:
- '127.0.0.1:8100:8000'
vault:
image: vault:latest
container_name: 2k_vault
ports:
- '127.0.0.1:8200:8200'
environment:
VAULT_ADDR: 'http://0.0.0.0:8200'
VAULT_DEV_ROOT_TOKEN_ID: 'password'
cap_add:
- IPC_LOCK
relay:
container_name: 2k_relay
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile.dev
command: [ "/bin/sh", "-c", "sleep 10 && cargo watch -w ./relay -s 'cargo run --bin relay'" ]
environment:
ROCKET_ADDRESS: '0.0.0.0'
ports:
- '127.0.0.1:8000:8000'
volumes:
- ./relay:/app/relay:ro
- ./keys:/app/keys:rw
manager:
container_name: 2k_manager
build:
context: .
dockerfile: Dockerfile.dev
restart: unless-stopped
command: [ "/bin/sh", "-c", "sleep 30 && cargo watch -w ./manager -s 'cargo run --bin manager'" ]
environment:
RELAY_ADDRESS: 'http://2k_relay:8000'
AMQP_ADDRESS: 'amqp://guest:guest@2k_rabbitmq:5672'
VAULT_ADDRESS: 'http://2k_vault:8200'
volumes:
- ./manager:/app/manager:ro