Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
docker-pterodactyl-legacy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
docker-pterodactyl-legacy
Commits
9d42e4f2
Commit
9d42e4f2
authored
Jun 19, 2017
by
Cameron Carney
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added new commands into entrypoint
parent
45253bdc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
18 deletions
+34
-18
docker-compose.yml
docker-compose.yml
+18
-17
manifest/entrypoint.sh
manifest/entrypoint.sh
+16
-1
No files found.
docker-compose.yml
View file @
9d42e4f2
...
...
@@ -45,6 +45,7 @@ services:
-
cache
-
mysql
environment
:
# Please change this to something else or routing will not work correctly.
-
APP_URL=http://localhost/
# SSL Encryption, useful if you dont run behind a reverse proxy
...
...
@@ -83,21 +84,21 @@ services:
# - ./certs:/certs
##
# If you
plan on running the daemon on the same machine, un
comment the section below.
# 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
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
manifest/entrypoint.sh
View file @
9d42e4f2
...
...
@@ -13,6 +13,7 @@ function init {
cp
./storage.template
${
STORAGE_DIR
}
-pr
fi
# Remove symlink if it exists
rm
-rf
./storage
ln
-s
${
STORAGE_DIR
}
./storage
...
...
@@ -27,9 +28,12 @@ function init {
php artisan optimize
php artisan config:cache
php artisan key:generate
--force
php artisan key:generate
--force
updateConfiguration
migrate
dbseed
fi
php artisan optimize
...
...
@@ -93,8 +97,13 @@ function updateConfiguration {
--password
=
"
${
MAIL_PASSWORD
}
"
\
--from-name
=
"
${
MAIL_FROM_NAME
}
"
}
function
migrate
{
php artisan migrate
--force
}
function
dbseed
{
php artisan db:seed
--force
}
...
...
@@ -103,10 +112,16 @@ function updateConfiguration {
init
case
"
$1
"
in
p:down
)
php artisan down
;;
p:start
)
initServer
exec
supervisord
--nodaemon
;;
p:up
)
php artisan up
;;
p:update
)
updateConfiguration
;;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment