diff --git a/proxy-mtproto/.env.dist b/proxy-mtproto/.env.dist index 92bd312..6b497e9 100644 --- a/proxy-mtproto/.env.dist +++ b/proxy-mtproto/.env.dist @@ -1,12 +1,13 @@ -# see https://hub.docker.com/r/nineseconds/mtg -# IPv4 address of this proxy. This is required if you NAT your proxy or run it in a docker container. -# https://github.com/9seconds/mtg#environment-variables -MTG_IPV4=123.456.789.012:444 +# see https://hub.docker.com/r/mtproxy/mtproxy # Internal port -INTERNAL_PORT=444 +PORT=444 +# External port EXTERNAL_PORT=444 +# External IP +IP=123.456.789.012 + # docker-compose.yml substitution: -PROXY_SECRET= -PROXY_TAG= \ No newline at end of file +SECRET= +#TAG= \ No newline at end of file diff --git a/proxy-mtproto/docker-compose.yml b/proxy-mtproto/docker-compose.yml index 1c41511..d0ef593 100644 --- a/proxy-mtproto/docker-compose.yml +++ b/proxy-mtproto/docker-compose.yml @@ -2,10 +2,9 @@ version: '3.7' services: mtg: - image: nineseconds/mtg:latest + image: mtproxy/mtproxy container_name: proxy-mtproto ports: - - "${EXTERNAL_PORT}:${INTERNAL_PORT}/tcp" + - "${EXTERNAL_PORT}:${PORT}/tcp" env_file: .env restart: unless-stopped - command: "run ${PROXY_SECRET} ${PROXY_TAG}"