forked from ccarney16/pterodactyl-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.extra.yml
50 lines (47 loc) · 1.46 KB
/
docker-compose.extra.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
##
# docker-compose extra services
# These services are completely optional, as they arent required to operate
# from the base yaml file.
##
##
# 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/certbot
volumes:
- ./letsencrypt:/etc/letsencrypt
# If you are using the certbot container, apply this to the panel container
panel:
volumes:
- ./letsencrypt:/etc/letsencrypt
- ./letsencrypt/webroot/.well-known:/var/www/html/public/.well-known
##
# Seperate Worker Container
# If you plan on using another container for handling all the workers and cronjobs,
# use these services and set DISABLE_WORKERS=true for the panel container
##
worker:
command: php /var/www/html/artisan queue:work database --queue=high,standard,low --sleep=3 --tries=3
env_file: .env
image: quay.io/ccarney/pterodactyl-panel:latest
restart: always
volumes_from:
- panel
cron:
command: /usr/sbin/crond -f -l 0
env_file: .env
image: quay.io/ccarney/pterodactyl-panel:latest
restart: always
volumes_from:
- panel
sftp:
image: ccarney16/pterodactyl-sftp:v1.0.1
restart: always
volumes_from:
- daemon