From aa78071543ea6b41568a6944a68a2cb981add175 Mon Sep 17 00:00:00 2001 From: "Michael (Parker) Parker" Date: Thu, 17 Sep 2020 23:48:01 -0400 Subject: [PATCH] update docker configs (#50) * update docker configs dockerfile with an updated start command docker-compose file adds custom network name so it can be used in firewalld commands. * update compose file mount changes remove /srv/daemon-data remove /etc/timezone variable changes add TZ * add note about old data folder. * update to go 1.15 Update base image to go version 1.15 --- Dockerfile | 4 ++-- docker-compose.example.yml | 21 +++++++++++++++------ 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index fc8c12d..bb7931d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ # Pterodactyl Panel Dockerfile # ---------------------------------- -FROM golang:1.14-alpine +FROM golang:1.15-alpine COPY . /go/wings/ WORKDIR /go/wings/ RUN apk add --no-cache upx \ @@ -11,4 +11,4 @@ RUN apk add --no-cache upx \ FROM alpine:latest COPY --from=0 /go/wings/wings /usr/bin/ -CMD ["wings","--config", "/var/lib/pterodactyl/config.yml"] \ No newline at end of file +CMD ["wings","--config", "/etc/pterodactyl/config.yml"] \ No newline at end of file diff --git a/docker-compose.example.yml b/docker-compose.example.yml index e927519..3715d0e 100644 --- a/docker-compose.example.yml +++ b/docker-compose.example.yml @@ -1,26 +1,35 @@ -version: '3' +version: '3.5' services: daemon: build: . restart: always - hostname: daemon + networks: + - daemon0 ports: - "8080:8080" - "2022:2022" tty: true environment: - "DEBUG=false" + - "TZ=UTC" # change to the three letter timezone of your choosing volumes: - "/var/run/docker.sock:/var/run/docker.sock" - "/var/lib/docker/containers/:/var/lib/docker/containers/" + - "/etc/pterodactyl/:/etc/pterodactyl/" - "/var/lib/pterodactyl/:/var/lib/pterodactyl/" - - "/srv/daemon-data/:/srv/daemon-data/" + - "/var/log/pterodactyl/:/var/log/pterodactyl/" - "/tmp/pterodactyl/:/tmp/pterodactyl/" - - "/etc/timezone:/etc/timezone:ro" + ## you may need /srv/daemon-data if you are upgrading from an old daemon + ## - "/srv/daemon-data/:/srv/daemon-data/" ## Required for ssl if you user let's encrypt. uncomment to use. ## - "/etc/letsencrypt/:/etc/letsencrypt/" + networks: - default: + daemon0: + name: daemon0 + driver: bridge ipam: config: - - subnet: 172.21.0.0/16 + - subnet: "172.21.0.0/16" + driver_opts: + com.docker.network.bridge.name: daemon0 \ No newline at end of file