Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/docker-compose.example.yml
7382 views
1
version: '3.8'
2
x-common:
3
database:
4
&db-environment
5
# Do not remove the "&db-password" from the end of the line below, it is important
6
# for Panel functionality.
7
MYSQL_PASSWORD: &db-password "CHANGE_ME"
8
MYSQL_ROOT_PASSWORD: "CHANGE_ME_TOO"
9
panel:
10
&panel-environment
11
APP_URL: "http://example.com"
12
# A list of valid timezones can be found here: http://php.net/manual/en/timezones.php
13
APP_TIMEZONE: "UTC"
14
APP_SERVICE_AUTHOR: "[email protected]"
15
# Uncomment the line below and set to a non-empty value if you want to use Let's Encrypt
16
# to generate an SSL certificate for the Panel.
17
# LE_EMAIL: ""
18
mail:
19
&mail-environment
20
MAIL_FROM: "[email protected]"
21
MAIL_DRIVER: "smtp"
22
MAIL_HOST: "mail"
23
MAIL_PORT: "1025"
24
MAIL_USERNAME: ""
25
MAIL_PASSWORD: ""
26
MAIL_ENCRYPTION: "true"
27
28
#
29
# ------------------------------------------------------------------------------------------
30
# DANGER ZONE BELOW
31
#
32
# The remainder of this file likely does not need to be changed. Please only make modifications
33
# below if you understand what you are doing.
34
#
35
services:
36
database:
37
image: mariadb:10.5
38
restart: always
39
command: --default-authentication-plugin=mysql_native_password
40
volumes:
41
- "/srv/pterodactyl/database:/var/lib/mysql"
42
environment:
43
<<: *db-environment
44
MYSQL_DATABASE: "panel"
45
MYSQL_USER: "pterodactyl"
46
cache:
47
image: redis:alpine
48
restart: always
49
panel:
50
image: ghcr.io/pterodactyl/panel:latest
51
restart: always
52
ports:
53
- "80:80"
54
- "443:443"
55
links:
56
- database
57
- cache
58
volumes:
59
- "/srv/pterodactyl/var/:/app/var/"
60
- "/srv/pterodactyl/nginx/:/etc/nginx/http.d/"
61
- "/srv/pterodactyl/certs/:/etc/letsencrypt/"
62
- "/srv/pterodactyl/logs/:/app/storage/logs"
63
environment:
64
<<: [*panel-environment, *mail-environment]
65
DB_PASSWORD: *db-password
66
APP_ENV: "production"
67
APP_ENVIRONMENT_ONLY: "false"
68
CACHE_DRIVER: "redis"
69
SESSION_DRIVER: "redis"
70
QUEUE_DRIVER: "redis"
71
REDIS_HOST: "cache"
72
DB_HOST: "database"
73
DB_PORT: "3306"
74
networks:
75
default:
76
ipam:
77
config:
78
- subnet: 172.20.0.0/16
79
80