-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
48 lines (46 loc) · 1.14 KB
/
docker-compose.yaml
File metadata and controls
48 lines (46 loc) · 1.14 KB
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
services:
trusthash-sidecar:
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
expose:
- '3003'
env_file:
- .env.docker
environment:
- NODE_ENV=${NODE_ENV:-production}
- PORT=3003
- LOG_LEVEL=${LOG_LEVEL:-info}
- DUCKDB_PATH=/app/data/provenance.duckdb
- MAX_IMAGE_SIZE_MB=${MAX_IMAGE_SIZE_MB:-50}
- REFERENCE_FETCH_TIMEOUT_MS=${REFERENCE_FETCH_TIMEOUT_MS:-10000}
volumes:
- ./data:/app/data
networks:
- ar-io-network
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:3003/health']
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
trusthash-proxy:
image: nginx:alpine
restart: unless-stopped
ports:
- '${PROXY_PORT:-3003}:80'
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- trusthash-sidecar
networks:
- ar-io-network
healthcheck:
test: ['CMD', 'wget', '--quiet', '--tries=1', '--spider', 'http://localhost:80/health']
interval: 30s
timeout: 10s
retries: 3
networks:
ar-io-network:
external: true