Skip to content

Commit 38a2b08

Browse files
authored
Add image tag v2.0.65 to docker-compose (#193)
* Added image tag as v2.0.65 * Replaced hardcoded image tag with IMAGE_TAG env var - docker-compose.yaml: use ${IMAGE_TAG:-latest} so the tag is not hardcoded - configure.py: add IMAGE_TAG (default: latest) to generated .env - README.md: document IMAGE_TAG under Configuration
1 parent d8e1617 commit 38a2b08

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,11 @@ The service supports the following environment variables:
129129

130130
Redis cache timeout.
131131

132+
#### Docker image
133+
- `IMAGE_TAG` *(default: latest)*
134+
135+
Docker image tag for `toncenter/ton-http-api`. Leave as `latest` to always pull the most recent image, or pin to a specific version (e.g. `v2.0.65`) for reproducible deployments.
136+
132137

133138
## FAQ
134139
#### How to point the service to my own lite server?

configure.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
'TON_API_TONLIB_PARALLEL_REQUESTS_PER_LITESERVER': '50',
2222
'TON_API_TONLIB_CDLL_PATH': '',
2323
'TON_API_TONLIB_REQUEST_TIMEOUT': '10',
24-
'TON_API_GUNICORN_FLAGS': ''
24+
'TON_API_GUNICORN_FLAGS': '',
25+
'IMAGE_TAG': 'latest'
2526
}
2627

2728

docker-compose.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
version: '3.7'
1+
version: "3.7"
22
services:
33
main:
4-
image: toncenter/ton-http-api
5-
build:
4+
image: toncenter/ton-http-api:${IMAGE_TAG:-latest}
5+
build:
66
context: ton-http-api
77
dockerfile: .docker/Dockerfile
88
ports:

0 commit comments

Comments
 (0)