mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-25 02:04:06 +02:00
add fteproxy-arm
This commit is contained in:
parent
027407f0cb
commit
67f9b0b2d9
44
fteproxy/arm/Dockerfile
Normal file
44
fteproxy/arm/Dockerfile
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
#
|
||||||
|
# Dockerfile for fteproxy-arm
|
||||||
|
#
|
||||||
|
|
||||||
|
FROM easypi/alpine-arm
|
||||||
|
MAINTAINER EasyPi Software Foundation
|
||||||
|
|
||||||
|
RUN set -xe \
|
||||||
|
&& apk add -U build-base \
|
||||||
|
gmp \
|
||||||
|
gmp-dev \
|
||||||
|
libstdc++ \
|
||||||
|
python \
|
||||||
|
python-dev \
|
||||||
|
py-pip \
|
||||||
|
&& pip install fteproxy \
|
||||||
|
&& apk del build-base \
|
||||||
|
gmp-dev \
|
||||||
|
python-dev \
|
||||||
|
&& rm -rf /root/.cache /var/cache/apk/*
|
||||||
|
|
||||||
|
ENV MODE server
|
||||||
|
ENV UPSTREAM_FORMAT manual-http-request
|
||||||
|
ENV DOWNSTREAM_FORMAT manual-http-response
|
||||||
|
ENV CLIENT_IP 127.0.0.1
|
||||||
|
ENV CLIENT_PORT 8079
|
||||||
|
ENV SERVER_IP 127.0.0.1
|
||||||
|
ENV SERVER_PORT 8080
|
||||||
|
ENV PROXY_IP 127.0.0.1
|
||||||
|
ENV PROXY_PORT 8081
|
||||||
|
ENV RELEASE 20131224
|
||||||
|
ENV KEY FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000000000000000000000000000
|
||||||
|
|
||||||
|
CMD fteproxy --mode $MODE \
|
||||||
|
--upstream-format $UPSTREAM_FORMAT \
|
||||||
|
--downstream-format $DOWNSTREAM_FORMAT \
|
||||||
|
--client_ip $CLIENT_IP \
|
||||||
|
--client_port $CLIENT_PORT \
|
||||||
|
--server_ip $SERVER_IP \
|
||||||
|
--server_port $SERVER_PORT \
|
||||||
|
--proxy_ip $PROXY_IP \
|
||||||
|
--proxy_port $PROXY_PORT \
|
||||||
|
--release $RELEASE \
|
||||||
|
--key $KEY
|
12
fteproxy/arm/docker-compose.yml
Normal file
12
fteproxy/arm/docker-compose.yml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
fteproxy:
|
||||||
|
image: easypi/fteproxy-arm
|
||||||
|
ports:
|
||||||
|
- "1194:1194"
|
||||||
|
environment:
|
||||||
|
- MODE=client
|
||||||
|
- SERVER_IP=vpn.easypi.info
|
||||||
|
- SERVER_PORT=4911
|
||||||
|
- CLIENT_IP=0.0.0.0
|
||||||
|
- CLIENT_PORT=1194
|
||||||
|
- KEY=66754b8113ea7a218b7613f73f7e13b1e91790216f659b5f78b903b34c654741
|
||||||
|
restart: always
|
@ -20,14 +20,14 @@ fteproxy:
|
|||||||
ports:
|
ports:
|
||||||
- "4911:4911"
|
- "4911:4911"
|
||||||
links:
|
links:
|
||||||
- "server"
|
- server
|
||||||
environment:
|
environment:
|
||||||
- "MODE=server"
|
- MODE=server
|
||||||
- "SERVER_IP=0.0.0.0"
|
- SERVER_IP=0.0.0.0
|
||||||
- "SERVER_PORT=4911"
|
- SERVER_PORT=4911
|
||||||
- "PROXY_IP=server"
|
- PROXY_IP=server
|
||||||
- "PROXY_PORT=1194"
|
- PROXY_PORT=1194
|
||||||
- "KEY=66754b8113ea7a218b7613f73f7e13b1e91790216f659b5f78b903b34c654741"
|
- KEY=66754b8113ea7a218b7613f73f7e13b1e91790216f659b5f78b903b34c654741
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
################################### CLIENT ###################################
|
################################### CLIENT ###################################
|
||||||
@ -37,12 +37,12 @@ fteproxy:
|
|||||||
# ports:
|
# ports:
|
||||||
# - "1194:1194"
|
# - "1194:1194"
|
||||||
# environment:
|
# environment:
|
||||||
# - "MODE=client"
|
# - MODE=client
|
||||||
# - "SERVER_IP=vpn.easypi.info"
|
# - SERVER_IP=vpn.easypi.info
|
||||||
# - "SERVER_PORT=4911"
|
# - SERVER_PORT=4911
|
||||||
# - "CLIENT_IP=0.0.0.0"
|
# - CLIENT_IP=0.0.0.0
|
||||||
# - "CLIENT_PORT=1194"
|
# - CLIENT_PORT=1194
|
||||||
# - "KEY=66754b8113ea7a218b7613f73f7e13b1e91790216f659b5f78b903b34c654741"
|
# - KEY=66754b8113ea7a218b7613f73f7e13b1e91790216f659b5f78b903b34c654741
|
||||||
# restart: always
|
# restart: always
|
||||||
#
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user