Commit c66cd8e5 authored by Cameron Carney's avatar Cameron Carney

readded certbot; daemon dockerfile creates pterodactyl user

parent 9a36b9b1
...@@ -15,16 +15,31 @@ services: ...@@ -15,16 +15,31 @@ services:
image: mariadb:10.2 image: mariadb:10.2
restart: always restart: always
volumes: volumes:
- ./mysql_db:/var/lib/mysql - ./db:/var/lib/mysql
## ##
# Let's Encrypt Certbot
# This service provides free SSL certificates that can
# be used to connect to the world. Uncomment if you
# are using the panel on its own (without a reverse
# proxy). It is recommended to use the webroot
# plugin. To get a certificate, run
# "docker-compose run --rm certbot --webroot -w
# /etc/letsencrypt/webroot -d {domain}" and follow
# the instructions on screen.
##
# certbot:
# command: renew
# image: certbot
# volumes:
# - ./letsencrypt:/etc/letsencrypt
# Panel Cache # Panel Cache
# This service is required for the panel to function. # This service is required for the panel to function.
# You can use either redis or memcached, but redis # You can use either redis or memcached, but redis
# is provided by default here. # is provided by default here.
## ##
cache: cache:
container_name: pterodactyl-cache
image: redis:alpine image: redis:alpine
restart: always restart: always
...@@ -36,7 +51,6 @@ services: ...@@ -36,7 +51,6 @@ services:
build: build:
context: ./manifest/panel context: ./manifest/panel
dockerfile: Dockerfile dockerfile: Dockerfile
container_name: pterodactyl-panel
depends_on: depends_on:
- cache - cache
- mysql - mysql
...@@ -45,6 +59,10 @@ services: ...@@ -45,6 +59,10 @@ services:
restart: always restart: always
volumes: volumes:
- ./data:/data - ./data:/data
# If you are using the certbot container, uncomment the following volumes
# - ./letsencrypt:/etc/letsencrypt
# - ./letsencrypt/webroot/.well-known:/var/www/html/public/.well-known
ports: ports:
- 80:80 - 80:80
- 443:443 - 443:443
...@@ -58,7 +76,6 @@ services: ...@@ -58,7 +76,6 @@ services:
build: build:
context: ./manifest/daemon context: ./manifest/daemon
dockerfile: Dockerfile dockerfile: Dockerfile
container_name: pterodactyl-daemon
depends_on: depends_on:
- panel - panel
image: quay.io/ccarney/pterodactyl-daemon:v0.5.0-beta image: quay.io/ccarney/pterodactyl-daemon:v0.5.0-beta
......
...@@ -6,21 +6,13 @@ ENV DAEMON_VERSION=v0.5.5 ...@@ -6,21 +6,13 @@ ENV DAEMON_VERSION=v0.5.5
WORKDIR /srv/daemon WORKDIR /srv/daemon
# Sadly everything has to be in one line to ensure that the image stays small...
##
# Put it as this:
# update alpine repos and install the required building tools
# Download Daemon
# Install the Daemon's dependencies
# Delete the build tools (gcc, python, etc)
# Purge Cache
##
RUN \ RUN \
apk --update --no-cache add coreutils curl openssl make gcc g++ python gnupg tar \ apk --update --no-cache add coreutils curl openssl make gcc g++ python gnupg tar \
&& curl -Lo daemon.tar.gz https://github.com/Pterodactyl/Daemon/archive/${DAEMON_VERSION}.tar.gz \ && curl -Lo daemon.tar.gz https://github.com/Pterodactyl/Daemon/archive/${DAEMON_VERSION}.tar.gz \
&& tar --strip-components=1 -xzvf daemon.tar.gz \ && tar --strip-components=1 -xzvf daemon.tar.gz \
&& rm -f daemon.tar.gz \ && rm -f daemon.tar.gz \
&& npm install --production \ && npm install --production \
&& addgroup -S -g 500 pterodactyl && adduser -S -D -H -G pterodactyl -u 500 -s /bin/false pterodactyl \
&& apk del curl make gcc g++ python gnupg \ && apk del curl make gcc g++ python gnupg \
&& rm -rf /root/.npm /root/.node-gyp /root/.gnupg \ && rm -rf /root/.npm /root/.node-gyp /root/.gnupg \
/var/cache/apk/* /tmp/* /var/cache/apk/* /tmp/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment