prepare for docker

This commit is contained in:
mantaohuang
2020-05-29 19:46:23 -04:00
parent 468864d3e2
commit 5a8b7755a3
8 changed files with 76 additions and 18 deletions
+1
View File
@@ -0,0 +1 @@
config/
+8
View File
@@ -0,0 +1,8 @@
FROM golang:alpine
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/repositories && \
apk add --update openvpn iptables bash git python3 shadow neovim linux-headers musl-dev 3proxy ip6tables gcc && \
rm -rf /tmp/* /var/tmp/* /var/cache/apk/* /var/cache/distfiles/*
CMD tail -f /dev/null
+16
View File
@@ -0,0 +1,16 @@
version: '3.4'
services:
ovpn_lb_test:
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
volumes:
- /dev/net:/dev/net:z
- ./config:/config
cap_add:
- net_admin