-
-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e2872e7
commit d970ec3
Showing
2 changed files
with
16 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
# ---------------------------------- | ||
# Pterodactyl Panel Dockerfile | ||
# ---------------------------------- | ||
|
||
FROM golang:1.15-alpine | ||
ARG VERSION="develop" | ||
COPY . /go/wings/ | ||
WORKDIR /go/wings/ | ||
RUN apk add --no-cache upx \ | ||
&& CGO_ENABLED=0 go build -ldflags="-s -w" \ | ||
&& upx --brute wings | ||
&& CGO_ENABLED=0 go build -ldflags="-s -w -X github.com/pterodactyl/wings/system.Version=${VERSION}" \ | ||
&& upx wings | ||
|
||
FROM alpine:latest | ||
COPY --from=0 /go/wings/wings /usr/bin/ | ||
CMD ["wings","--config", "/etc/pterodactyl/config.yml"] | ||
CMD ["wings", "--config", "/etc/pterodactyl/config.yml"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,34 @@ | ||
version: '3.5' | ||
version: '3.8' | ||
services: | ||
daemon: | ||
build: . | ||
wings: | ||
image: quay.io/pterodactyl/wings:latest | ||
restart: always | ||
networks: | ||
- daemon0 | ||
- wings0 | ||
ports: | ||
- "8080:8080" | ||
- "2022:2022" | ||
tty: true | ||
environment: | ||
- "DEBUG=false" | ||
- "TZ=UTC" # change to the three letter timezone of your choosing | ||
TZ: UTC | ||
DEBUG: false | ||
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/" | ||
- "/var/log/pterodactyl/:/var/log/pterodactyl/" | ||
- "/tmp/pterodactyl/:/tmp/pterodactyl/" | ||
## 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/" | ||
|
||
# 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: | ||
daemon0: | ||
name: daemon0 | ||
name: wings0 | ||
driver: bridge | ||
ipam: | ||
config: | ||
- subnet: "172.21.0.0/16" | ||
driver_opts: | ||
com.docker.network.bridge.name: daemon0 | ||
com.docker.network.bridge.name: wings0 |