prepare for docker
This commit is contained in:
@@ -0,0 +1 @@
|
||||
config/
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user