-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
57 lines (54 loc) · 1.48 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
version: "3"
services:
tunnel:
image: dbluhm/agent-tunnel
command: -s reverse-proxy:80 -p 4040 -h ${AGENT_TUNNEL_HOST}
ports:
- 4040:4040
agent:
image: acapy-cache-redis
build:
context: ./
dockerfile: ./docker/Dockerfile
depends_on:
redis-host:
condition: service_healthy
links:
- redis-host
- reverse-proxy
ports:
- 3000:3000
- 3001:3001
volumes:
- ./acapy-endpoint.sh:/acapy-endpoint.sh:ro,z
- ./acapy_cache_redis:/home/indy/acapy_cache_redis:ro,z
- ./docker/default.yml:/home/indy/default.yml:ro,z
environment:
TUNNEL_ENDPOINT: http://tunnel:4040
entrypoint: >
/bin/sh -c '/acapy-endpoint.sh poetry run aca-py "$$@"' --
command: >
start --arg-file default.yml
reverse-proxy:
image: nginx:alpine
restart: unless-stopped
environment:
AGENT_HTTP: "agent:3000"
AGENT_WS: "agent:3002"
ports:
- 80:80
volumes:
- ./nginx.conf.template:/etc/nginx/templates/default.conf.template:z
redis-host:
image: "redis:alpine"
healthcheck:
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
ports:
- "6379:6379"
volumes:
- ./redis-data:/var/lib/redis
- ./redis.conf:/etc/redis/redis.conf:ro,z
environment:
- REDIS_REPLICATION_MODE=master
#TODO: add a volume for the redis data
#TODO: add healthcheck and then the agent should have a depends on condition of service_healthy for the service.