1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-21 01:27:01 +02:00

update dante

This commit is contained in:
kev 2020-10-30 12:48:52 +08:00
parent b306e0b38e
commit 410c297862
5 changed files with 39 additions and 32 deletions

View File

@ -1,17 +1,17 @@
#
# Dockerfile for dante-server
# Dockerfile for dante
#
FROM debian:jessie
MAINTAINER kev <noreply@easypi.pro>
FROM debian:buster
MAINTAINER EasyPi Software Foundation
ENV DANTE_VER 1.4.2
ENV DANTE_URL https://www.inet.no/dante/files/dante-$DANTE_VER.tar.gz
ENV DANTE_SHA 4c97cff23e5c9b00ca1ec8a95ab22972813921d7fbf60fc453e3e06382fc38a7
ENV DANTE_FILE dante.tar.gz
ENV DANTE_TEMP dante
ENV DANTE_DEPS build-essential curl
ENV DANTE_VER=1.4.2
ENV DANTE_URL=https://www.inet.no/dante/files/dante-$DANTE_VER.tar.gz
ENV DANTE_SHA=4c97cff23e5c9b00ca1ec8a95ab22972813921d7fbf60fc453e3e06382fc38a7
ENV DANTE_FILE=dante.tar.gz
ENV DANTE_TEMP=dante
ENV DANTE_DEPS="build-essential curl"
RUN set -xe \
&& apt-get update \
@ -28,13 +28,12 @@ RUN set -xe \
&& apt-get purge -y --auto-remove $DANTE_DEPS \
&& rm -rf /var/lib/apt/lists/*
ADD sockd.conf /etc/sockd.conf
COPY data/sockd.conf /etc/dante/sockd.conf
ENV CFGFILE /etc/sockd.conf
ENV PIDFILE /tmp/sockd.pid
ENV WORKERS 10
ENV CFGFILE=/etc/dante/sockd.conf
ENV PIDFILE=/run/sockd.pid
ENV WORKERS=10
EXPOSE 1080
CMD sockd -f $CFGFILE -p $PIDFILE -N $WORKERS

View File

@ -8,14 +8,18 @@ network connectivity.
## docker-compose.yml
```
dante:
image: vimagick/dante
ports:
- "1080:1080"
volumes:
- ./sockd.conf:/etc/sockd.conf
restart: always
```yaml
version: "3.8"
services:
dante:
image: vimagick/dante
ports:
- "1080:1080"
volumes:
- ./data:/etc/dante
tmpfs:
- /run
restart: unless-stopped
```
## sockd.conf
@ -44,7 +48,7 @@ socks pass {
## up and running
```
```bash
$ docker-compose up -d
# To enable username authentication, please uncomment `socksmethod: username`.

View File

@ -1,7 +1,11 @@
dante:
image: vimagick/dante
ports:
- "1080:1080"
volumes:
- ./sockd.conf:/etc/sockd.conf
restart: always
version: "3.8"
services:
dante:
image: vimagick/dante
ports:
- "1080:1080"
volumes:
- ./data:/etc/dante
tmpfs:
- /run
restart: unless-stopped

View File

@ -1,9 +1,9 @@
version: "3.8"
services:
n8n:
image: n8nio/n8n:latest-rpi
image: n8nio/n8n:0.90.0-rpi
ports:
- "5678:5678"
volumes:
- ./data:/root/.n8n
- ./data:/home/node/.n8n
restart: unless-stopped