Commit 7b42cd4d authored by Cameron Carney's avatar Cameron Carney

Formatting docker-compose.yml

parent 28168fae
......@@ -6,7 +6,7 @@
----
### Quick Start ###
### Quick Start
Copy .env.example as .env and run the setup under the commands provided:
......@@ -15,7 +15,7 @@ Copy .env.example as .env and run the setup under the commands provided:
You can run the panel using this command:
`docker run --name=pterodactyl-panel -p 80:80 -p 443:443 --env-file=./.env quay.io/ccarney/pterodactyl-panel:testing`.
><sup>* This command alone does not provide the full environment for the panel. This is more or less a reference. If you wish to have a full environment, it is recommended to use the method below.</sup>
><sup>This command alone does not provide the full environment for the panel. This is more or less a reference. If you wish to have a full environment, it is recommended to use the method below.</sup>
__or__
......@@ -26,7 +26,7 @@ You can start the panel by running `docker-compose up -d`.
*docker-compose.other.yml* provides mysql and the Let's Encrypt certbot services. If you want to use those services, you can symlink or copy it as *docker-compose.override.yml*.
### The _/data_ Volume ###
### The _/data_ Volume
The data volume for the image is used to maintain persistence:
......@@ -34,29 +34,29 @@ The data volume for the image is used to maintain persistence:
* *storage/*: Laravel storage, contains cache, logs, and files that need to be writable to the panel.
* *cache/*: configuration cache for the panel.
>It is recommend to create a directory mount for this, but isnt required.
><sup>It is recommend to create a directory mount for this, but isnt required.</sup>
### Updating ###
### Updating
Refer to https://docs.pterodactyl.io/ when updating to a newer version. `php artisan pterodactyl:env` and `php artisan pterodatyl:mail` are not required if you have the variables set outside of */data/pterodactyl.conf*.
### Migrating ###
### Migrating
Refer to [https://docs.pterodactyl.io/](https://docs.pterodactyl.io/) for migrating. For users who are coming from a non dockerized setup, you can put your panel .env within the */data* volume and rename it as pterodactyl.conf. Once all set, start up the container environment.
### Entrypoint Commands ###
### Entrypoint Commands
* p:start - Starts the panel web server and requirements (We don't provide cache and database!).
### SSL Encryption ###
### SSL Encryption
SSL Encryption is an optional but recommended feature. Automatic SSL within *docker-compose.other.yml* is provided by Let's Encrypt. Refer to *docker-compose.other.yml* for more information.
### Contributing ###
### Contributing
All issues regarding Pterodactyl Panel/Node are to be reported to https://github.com/Pterodactyl/Panel/issues.
### Useful Links ###
### Useful Links
*Pterodactyl Project*:
......
##
# Optional Services, Recommended to rename to docker-compose.override.yml
##
version: '2'
services:
......@@ -29,4 +28,25 @@ services:
- mysql
volumes:
- ./ssl:/ssl
- ./ssl/.webroot/.well-known:/var/www/html/public/.well-known
\ No newline at end of file
- ./ssl/.webroot/.well-known:/var/www/html/public/.well-known
##
# If you don't plan on running the daemon on the same machine,
# you may comment the section below.
##
daemon:
image: quay.io/ccarney/pterodactyl-daemon:v0.4.2
depends_on:
- panel
ports:
- 8080:8080
restart: always
volumes:
- /srv/daemon/config:/srv/daemon/config
- /srv/daemon/packs:/srv/daemon/packs
- /srv/daemon/scripts:/srv/daemon/scripts
- /srv/daemon-data:/srv/daemon-data
- /tmp/pterodactyl:/tmp/pterodactyl
- /var/run/docker.sock:/var/run/docker.sock
......@@ -26,23 +26,3 @@ services:
restart: always
volumes:
- ./data:/data
##
# If you don't plan on running the daemon on the same machine, comment the section below.
##
daemon:
image: quay.io/ccarney/pterodactyl-daemon:v0.4.2
depends_on:
- panel
ports:
- 8080:8080
restart: always
volumes:
- /srv/daemon/config:/srv/daemon/config
- /srv/daemon/packs:/srv/daemon/packs
- /srv/daemon/scripts:/srv/daemon/scripts
- /srv/daemon-data:/srv/daemon-data
- /tmp/pterodactyl:/tmp/pterodactyl
- /var/run/docker.sock:/var/run/docker.sock
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