Add docker files
Add Dockerfile Add docker-compose.yml
This commit is contained in:
parent
151b00de23
commit
377cae4d48
12
Dockerfile
Normal file
12
Dockerfile
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
# ----------------------------------
|
||||||
|
# Pterodactyl Panel Dockerfile
|
||||||
|
# ----------------------------------
|
||||||
|
|
||||||
|
FROM golang:1.14-alpine
|
||||||
|
COPY . /go/wings/
|
||||||
|
WORKDIR /go/wings/
|
||||||
|
RUN go build
|
||||||
|
|
||||||
|
FROM alpine:latest
|
||||||
|
COPY --from=0 /go/wings/wings /usr/bin/
|
||||||
|
CMD ["wings","--config", "/srv/daemon/config.yml"]
|
26
docker-compose.example.yml
Normal file
26
docker-compose.example.yml
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
daemon:
|
||||||
|
build: .
|
||||||
|
restart: always
|
||||||
|
hostname: daemon
|
||||||
|
ports:
|
||||||
|
- "8080:8080"
|
||||||
|
- "2022:2022"
|
||||||
|
tty: true
|
||||||
|
environment:
|
||||||
|
- "DEBUG=false"
|
||||||
|
volumes:
|
||||||
|
- "/var/run/docker.sock:/var/run/docker.sock"
|
||||||
|
- "/var/lib/docker/containers:/var/lib/docker/containers"
|
||||||
|
- "/srv/daemon/:/srv/daemon/"
|
||||||
|
- "/srv/daemon-data/:/srv/daemon-data/"
|
||||||
|
- "/tmp/pterodactyl/:/tmp/pterodactyl/"
|
||||||
|
- "/etc/timezone:/etc/timezone:ro"
|
||||||
|
## Required for ssl if you user let's encrypt. uncomment to use.
|
||||||
|
## - "/etc/letsencrypt/:/etc/letsencrypt/"
|
||||||
|
networks:
|
||||||
|
default:
|
||||||
|
ipam:
|
||||||
|
config:
|
||||||
|
- subnet: 172.21.0.0/16
|
Loading…
Reference in New Issue
Block a user