forked from pterodactyl/panel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.example.yml
More file actions
78 lines (77 loc) · 2.65 KB
/
Copy pathdocker-compose.example.yml
File metadata and controls
78 lines (77 loc) · 2.65 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
x-common:
database:
&db-environment
# Do not remove the "&db-password" from the end of the line below, it is important
# for Panel functionality.
MYSQL_PASSWORD: &db-password "${DB_PASSWORD:-CHANGE_ME}"
MYSQL_ROOT_PASSWORD: "${DB_ROOT_PASSWORD:-CHANGE_ME_TOO}"
panel:
&panel-environment
APP_URL: "${APP_URL:-http://example.com}"
# A list of valid timezones can be found here: http://php.net/manual/en/timezones.php
APP_TIMEZONE: "${APP_TIMEZONE:-UTC}"
APP_SERVICE_AUTHOR: "${APP_SERVICE_AUTHOR:-noreply@example.com}"
# Uncomment the line below and set to a non-empty value if you want to use Let's Encrypt
# to generate an SSL certificate for the Panel.
LE_EMAIL: "${LE_EMAIL:-}"
mail:
&mail-environment
MAIL_FROM: "${MAIL_FROM_ADDRESS:-noreply@example.com}"
MAIL_DRIVER: "${MAIL_MAILER:-smtp}"
MAIL_HOST: "${MAIL_HOST:-mail}"
MAIL_PORT: "${MAIL_PORT:-1025}"
MAIL_USERNAME: "${MAIL_USERNAME:-}"
MAIL_PASSWORD: "${MAIL_PASSWORD:-}"
MAIL_ENCRYPTION: "${MAIL_ENCRYPTION:-true}"
#
# ------------------------------------------------------------------------------------------
# DANGER ZONE BELOW
#
# The remainder of this file likely does not need to be changed. Please only make modifications
# below if you understand what you are doing.
#
services:
database:
image: mariadb:11
restart: always
command: --default-authentication-plugin=mysql_native_password
volumes:
- "/srv/pterodactyl/database:/var/lib/mysql"
environment:
<<: *db-environment
MYSQL_DATABASE: "${DB_DATABASE:-panel}"
MYSQL_USER: "${DB_USERNAME:-pterodactyl}"
cache:
image: redis:alpine
restart: always
panel:
image: ghcr.io/pterodactyl/panel:latest
restart: always
ports:
- "${APP_PORT_HTTP:-80}:80"
- "${APP_PORT_HTTPS:-443}:443"
links:
- database
- cache
volumes:
- "/srv/pterodactyl/var/:/app/var/"
- "/srv/pterodactyl/nginx/:/etc/nginx/http.d/"
- "/srv/pterodactyl/certs/:/etc/letsencrypt/"
- "/srv/pterodactyl/logs/:/app/storage/logs"
environment:
<<: [*panel-environment, *mail-environment]
DB_PASSWORD: *db-password
APP_ENV: "${APP_ENV:-production}"
APP_ENVIRONMENT_ONLY: "${APP_ENVIRONMENT_ONLY:-false}"
CACHE_DRIVER: "${CACHE_DRIVER:-redis}"
SESSION_DRIVER: "${SESSION_DRIVER:-redis}"
QUEUE_DRIVER: "${QUEUE_CONNECTION:-redis}"
REDIS_HOST: "${REDIS_HOST:-cache}"
DB_HOST: "${DB_HOST:-database}"
DB_PORT: "${DB_PORT:-3306}"
HASHIDS_LENGTH: "${HASHIDS_LENGTH:-8}"
networks:
default:
ipam:
config:
- subnet: ${DOCKER_SUBNET:-172.20.0.0/16}