1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +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 FROM debian:buster
MAINTAINER kev <noreply@easypi.pro> MAINTAINER EasyPi Software Foundation
ENV DANTE_VER 1.4.2 ENV DANTE_VER=1.4.2
ENV DANTE_URL https://www.inet.no/dante/files/dante-$DANTE_VER.tar.gz ENV DANTE_URL=https://www.inet.no/dante/files/dante-$DANTE_VER.tar.gz
ENV DANTE_SHA 4c97cff23e5c9b00ca1ec8a95ab22972813921d7fbf60fc453e3e06382fc38a7 ENV DANTE_SHA=4c97cff23e5c9b00ca1ec8a95ab22972813921d7fbf60fc453e3e06382fc38a7
ENV DANTE_FILE dante.tar.gz ENV DANTE_FILE=dante.tar.gz
ENV DANTE_TEMP dante ENV DANTE_TEMP=dante
ENV DANTE_DEPS build-essential curl ENV DANTE_DEPS="build-essential curl"
RUN set -xe \ RUN set -xe \
&& apt-get update \ && apt-get update \
@ -28,13 +28,12 @@ RUN set -xe \
&& apt-get purge -y --auto-remove $DANTE_DEPS \ && apt-get purge -y --auto-remove $DANTE_DEPS \
&& rm -rf /var/lib/apt/lists/* && 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 CFGFILE=/etc/dante/sockd.conf
ENV PIDFILE /tmp/sockd.pid ENV PIDFILE=/run/sockd.pid
ENV WORKERS 10 ENV WORKERS=10
EXPOSE 1080 EXPOSE 1080
CMD sockd -f $CFGFILE -p $PIDFILE -N $WORKERS CMD sockd -f $CFGFILE -p $PIDFILE -N $WORKERS

View File

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

View File

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

View File

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