working docker

This commit is contained in:
mantaohuang 2020-05-30 01:06:22 -04:00
parent 666b2a61d6
commit 7875e203e0
3 changed files with 4 additions and 4 deletions

1
docker/.gitignore vendored
View File

@ -1 +1,2 @@
.env
config/

View File

@ -16,7 +16,7 @@ RUN pip install -r docker_requirement.txt
FROM alpine:latest
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/repositories && \
apk --no-cache add openvpn iptables ip6tables bash python3 shadow neovim 3proxy
apk --no-cache add openvpn iptables ip6tables bash python3 shadow neovim 3proxy fping
COPY --from=python-builder /mop /mop
COPY --from=go-builder /ovpn-lb-socks5/go-socks-lb/go-socks-lb /mop/go-socks-lb
CMD /mop/docker-entrypoint.sh

View File

@ -5,9 +5,8 @@ services:
build: .
container_name: ovpn_lb_test
ports:
- 127.0.0.1:8000:8000
- 127.0.0.1:7000:7000
- 127.0.0.1:7001:7001
- "${bind_ip}:8000:8000"
- "${bind_ip}:7000-7001:7000-7001"
volumes:
- /dev/net:/dev/net:z
- ./config:/config