-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
99 lines (91 loc) · 2.78 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
version: '3'
services:
# DB Service
db:
image: postgres:14.3
hostname: db
restart: unless-stopped
environment:
POSTGRES_USER: development
POSTGRES_PASSWORD: development
proxy:
build:
context: .
dockerfile: ./docker/Dockerfile
volumes:
- ./docker/wait:/app/wait:z
- store:/app/store
environment:
PORT: 3000
ENDPOINT: http://proxy:3000
ENABLE_STORE: "true"
REPO_URI: "postgres://development:development@db:5432/development"
REPO_KEY: insecure
LOG_LEVEL: DEBUG
WAIT_BEFORE_HOSTS: 3
WAIT_HOSTS: reverse-proxy:80, mediator:3000
WAIT_HOSTS_TIMEOUT: 30
WAIT_SLEEP_INTERVAL: 1
WAIT_HOST_CONNECT_TIMEOUT: 10
entrypoint: /bin/sh -c '/app/wait && python -m proxy_mediator "$$@"' --
agent:
image: ghcr.io/hyperledger/aries-cloudagent-python:py3.9-0.10.1
volumes:
- indy:/home/indy/.indy_client
command: >
start --label agent -it http 0.0.0.0 3000 -ot http -e http://agent:3000
--no-ledger --admin 0.0.0.0 3001 --admin-insecure-mode
--debug-connections --auto-accept-invites --auto-accept-requests
--auto-ping-connection --log-level debug
--wallet-type askar --wallet-name agent --wallet-key insecure --auto-provision
ports:
- 4001:3001
mediator-tunnel:
image: dbluhm/agent-tunnel
command: -s reverse-proxy:80 -p 4040 -h ${AGENT_TUNNEL_HOST}
reverse-proxy:
image: nginx
volumes:
- ./docker/nginx.conf:/etc/nginx/templates/default.conf.template:z
environment:
MEDIATOR: mediator
HTTP_PORT: 3000
WS_PORT: 3002
ports:
- 8080:80
depends_on:
- mediator
mediator:
image: ghcr.io/hyperledger/aries-cloudagent-python:py3.9-0.10.1
volumes:
- ./docker/acapy-endpoint.sh:/home/indy/acapy-endpoint.sh:z
- indy:/home/indy/.indy_client
ports:
- 4002:3001
environment:
- TUNNEL_ENDPOINT=http://mediator-tunnel:4040
entrypoint: /bin/sh -c './acapy-endpoint.sh aca-py "$$@"' --
command: >
start --label agent -it http 0.0.0.0 3000 -it ws 0.0.0.0 3002 -ot http
--no-ledger --admin 0.0.0.0 3001 --admin-insecure-mode
--debug-connections --auto-accept-invites --auto-accept-requests
--auto-ping-connection --log-level debug --open-mediation
--wallet-type askar --wallet-name mediator --wallet-key insecure --auto-provision
setup:
build:
context: ./docker/setup
environment:
- WAIT_BEFORE_HOSTS=3
- WAIT_HOSTS=proxy:3000,agent:3000
- WAIT_HOSTS_TIMEOUT=30
- WAIT_SLEEP_INTERVAL=1
- WAIT_HOST_CONNECT_TIMEOUT=10
- PROXY=http://proxy:3000
- AGENT=http://agent:3001
- MEDIATOR=http://mediator:3001
depends_on:
- proxy
- agent
volumes:
store:
indy: