Repository navigation
Expand file tree
/
Copy pathcompose.yaml
More file actions
59 lines (56 loc) · 1.94 KB
/
Copy pathcompose.yaml
File metadata and controls
59 lines (56 loc) · 1.94 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
49
50
51
52
53
54
55
56
57
58
59
services:
ton-exporter:
image: ${MYTONCTRL_IMAGE:-mytonctrl:local}
# Supply the export script from the controller image without starting it.
entrypoint: ["/bin/sh", "-eu", "-c"]
command:
- |
staged_script=$$(mktemp /scripts/.export-ton.sh.XXXXXX)
trap 'rm -f "$$staged_script"' EXIT
cp /usr/local/lib/mytonctrl/export-ton.sh "$$staged_script"
chmod 444 "$$staged_script"
mv -f "$$staged_script" /scripts/export-ton.sh
volumes:
- ton-scripts:/scripts
network_mode: none
restart: "no"
ton-binaries:
image: ${TON_IMAGE:-ghcr.io/ton-blockchain/ton:latest}
# Publish artifacts only. Never run TON's docker/init.sh.
entrypoint: ["/bin/sh", "/scripts/export-ton.sh"]
environment:
TON_IMAGE_REF: ${TON_IMAGE:-ghcr.io/ton-blockchain/ton:latest}
volumes:
- ton-artifacts:/ton-artifacts
- ton-scripts:/scripts:ro
depends_on:
ton-exporter:
condition: service_completed_successfully
restart: "no"
mytonctrl:
image: ${MYTONCTRL_IMAGE:-mytonctrl:local}
build:
context: .
args:
MYTONCTRL_COMMIT: ${MYTONCTRL_BUILD_COMMIT:-unknown}
MYTONCTRL_VERSION: ${MYTONCTRL_BUILD_VERSION:-unknown}
MYTONCTRL_IMAGE_REF: ${MYTONCTRL_IMAGE:-mytonctrl:local}
env_file: ${MYTONCTRL_ENV_FILE:-.env}
volumes:
- ton-artifacts:/ton-artifacts:ro
# An empty host path retains the original named volume.
- "${TON_WORK_HOST_DIR:-ton-work}:/var/ton-work"
depends_on:
ton-binaries:
condition: service_completed_successfully
# TON advertises PUBLIC_IP and listens on the ports selected in .env.
network_mode: host
stop_grace_period: 75s
restart: unless-stopped
volumes:
ton-scripts:
name: ${TON_SCRIPTS_VOLUME:-mytonctrl-ton-scripts}
ton-artifacts:
name: ${TON_ARTIFACTS_VOLUME:-mytonctrl-ton-artifacts}
ton-work:
name: ${TON_WORK_VOLUME:-mytonctrl-ton-work}