working docker
This commit is contained in:
parent
666b2a61d6
commit
7875e203e0
1
docker/.gitignore
vendored
1
docker/.gitignore
vendored
@ -1 +1,2 @@
|
||||
.env
|
||||
config/
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user