-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
82 lines (81 loc) · 2.7 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
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
services:
relayer:
image: iconcommunity/centralized-relay:${RELAYER_IMAGE_VERSION:-latest}
restart: ${RESTART_POLICY:-unless-stopped}
container_name: relayer
volumes:
- ${CONFIG}/relayer/data:/data:Z
- ${CONFIG}/relayer/home:/home/${RELAYER_USER:-relayer}
- ${CONFIG_PATH:-./config.yaml}:/home/${RELAYER_USER:-relayer}/config.yaml
- relay-socket:${SOCKET_DIR:-/var/run/relayer}
labels:
service: "centralized-relay"
healthcheck:
test: ["CMD", "test", "-S", "${SOCKET_DIR:-/var/run/relayer}/relay.sock"]
interval: 30s
timeout: 10s
retries: 3
environment:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION:-us-east-1}
- SOCKET_PATH=${SOCKET_DIR:-/var/run/relayer}/relay.sock
- RELAYER_LOG_FORMAT
networks:
relayer:
dashboard:
image: iconcommunity/relayer-admin-dashboard:${DASHBOARD_IMAGE_VERSION:-latest}
restart: ${RESTART_POLICY:-unless-stopped}
container_name: dashboard
ports:
- "${HTTP_PORT:-80}:80"
- "${HTTPS_PORT:-443}:443"
- "${DASHBOARD_PORT:-3000}"
volumes:
- ${CONFIG}/web:/config
- ${CONFIG}/web/crontabs:/var/spool/cron/crontabs
- ${CONFIG}/dashboard/cache:/usr/share/dashboard/.next/cache
- ${CONFIG}/dashboard/data:/data
- relay-socket:${SOCKET_DIR:-/var/run/relayer}
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /var/run/docker.sock:/var/run/docker.sock
healthcheck:
test:
- "CMD"
- "curl"
- "-f"
- "http://dashboard:${DASHBOARD_PORT:-3000}/api/health"
interval: 30s
timeout: 10s
retries: 3
labels:
service: "relayer-admin-dashboard"
environment:
- ENABLE_LETSENCRYPT
- DASHBOARD_PORT
- LETSENCRYPT_USE_STAGING=${LETSENCRYPT_USE_STAGING:-1}
- LETSENCRYPT_DOMAIN
- LETSENCRYPT_EMAIL
- DISABLE_RATE_LIMIT
- RATE_LIMIT_BURST
- RATE_LIMIT_RATE
- NEXT_PUBLIC_API_RETRY_INTERVAL_IN_SECONDS=${NEXT_PUBLIC_API_RETRY_INTERVAL_IN_SECONDS:-5}
- NEXT_PUBLIC_API_MAX_RETRY=${NEXT_PUBLIC_API_MAX_RETRY:-5}
- NEXTAUTH_URL
- NEXTAUTH_SECRET
- NEXT_XCALLSCAN_BASE_URL=${NEXT_XCALLSCAN_BASE_URL:-https://xcallscan.xyz/api}
- NEXT_RELAYER_SOCKET_PATH=${SOCKET_DIR:-/var/run/relayer}/relay.sock
- NEXT_RELAYERS_MAP_FILE_PATH=${NEXT_RELAYERS_MAP_FILE_PATH:-/data/database/relayers.json}
- NEXT_USERS_MAP_FILE_PATH=${NEXT_USERS_MAP_FILE_PATH:-/data/database/users.json}
- DEFAULT_ADMIN_EMAIL
- DEFAULT_ADMIN_PASSWORD
- DOCKER_HOST
depends_on:
- relayer
networks:
relayer:
networks:
relayer:
volumes:
relay-socket: