forked from pyrohost/pyrodactyl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.develop.yml
More file actions
191 lines (179 loc) · 6.48 KB
/
docker-compose.develop.yml
File metadata and controls
191 lines (179 loc) · 6.48 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
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 'password'
MYSQL_ROOT_PASSWORD: &db-root-password 'rootpassword'
panel: &panel-environment
APP_URL: 'http://panel'
# A list of valid timezones can be found here: http://php.net/manual/en/timezones.php
APP_TIMEZONE: 'UTC'
APP_SERVICE_AUTHOR: 'noreply@example.com'
DB_USERNAME: 'pterodactyl'
# DB_PASSWORD: "Uncomment this to user your own password"
# 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: ""
mail: &mail-environment
MAIL_FROM: 'noreply@example.com'
MAIL_DRIVER: 'smtp'
MAIL_HOST: 'mailpit'
MAIL_PORT: '1025'
MAIL_USERNAME: ''
MAIL_PASSWORD: ''
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:10.5
restart: always
command: --default-authentication-plugin=mysql_native_password
volumes:
- './srv/database:/var/lib/mysql'
environment:
<<: *db-environment
MYSQL_DATABASE: 'panel'
MYSQL_USER: 'pterodactyl'
ports:
- '3306:3306'
cache:
image: redis:alpine
restart: always
panel:
image: pyrodactyl:develop
restart: always
ports:
- '3000:80'
# - '443:443'
links:
- database
- cache
volumes:
- '.:/app'
- './srv/var:/app/var'
- './srv/nginx/:/etc/nginx/http.d/'
- './srv/certs:/etc/letsencrypt'
- './srv/logs/:/app/storage/logs'
- './srv/pterodactyl/config/:/etc/pterodactyl'
# anonymous volumes below, meaning it'll use the image's directory instead of the host
- '/app/vendor'
# needed for linux permissions
# - '/app/storage'
# - '/app/storage/app/private'
- '/app/storage/framework/views'
- '/app/bootstrap/cache'
environment:
<<: [*panel-environment, *mail-environment]
DB_PASSWORD: *db-password
DB_ROOT_PASSWORD: *db-root-password
APP_ENV: 'local'
APP_DEBUG: 'true'
LOG_CHANNEL: 'stack'
LOG_LEVEL: 'debug'
APP_ENVIRONMENT_ONLY: 'false'
CACHE_DRIVER: 'redis'
SESSION_DRIVER: 'redis'
QUEUE_DRIVER: 'redis'
REDIS_HOST: 'cache'
DB_CONNECTION: 'mariadb'
DB_HOST: 'database'
DB_PORT: '3306'
HASHIDS_LENGTH: 8
WINGS_INTERNAL_IP: 'wings'
WINGS_DIR: '${PWD}/srv/'
PYRODACTYL_DOCKER_DEV: 'true'
MAIL_HOST: 'mailhog'
MAIL_PORT: 1025
MAIL_DRIVER: 'smtp'
APP_BACKUP_DRIVER: 's3'
AWS_DEFAULT_REGION: 'us-west-2'
AWS_ACCESS_KEY_ID: 'minioadmin'
AWS_SECRET_ACCESS_KEY: 'minioadmin'
AWS_BACKUPS_BUCKET: 'pyrodactyl'
AWS_ENDPOINT: 'http://minio:9000'
AWS_USE_PATH_STYLE_ENDPOINT: 'true'
minio:
image: quay.io/minio/minio:latest
hostname: minio
expose:
- '9000'
- '9001'
volumes:
- ./srv/data1-1:/data1
- ./srv/data1-2:/data2
command: server --console-address ":9001" http://minio/data{1...2}
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
createbuckets:
image: quay.io/minio/mc:latest
depends_on:
- minio
entrypoint: >
/bin/sh -c "
until mc alias set local http://minio:9000 minioadmin minioadmin; do
echo 'Waiting for MinIO to be ready...'
sleep 2
done &&
mc mb --ignore-existing local/pyrodactyl &&
echo 'Bucket created.'
"
wings:
# The default Wings image doesn't work on macOS Docker
# This fork simply removes the incompatible `io.priority` cgroup v2 flag
# For Linux users, you can use the default image by uncommenting the line below
# image: ghcr.io/pterodactyl/wings:latest
image: ghcr.io/he3als/wings-mac:latest
restart: always
ports:
- '8080:8080'
- '2022:2022'
tty: true
environment:
TZ: 'UTC'
WINGS_UID: 988
WINGS_GID: 988
WINGS_USERNAME: pterodactyl
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
- '/etc/ssl/certs:/etc/ssl/certs:ro'
- './srv/pterodactyl/config/:/etc/pterodactyl/'
# The volumes below need to be the exact same path in the container as on the host.
#
# The paths are currently hardcoded in the container on first run, meaning if you move
# this repo on your host, you'll need to delete "srv" folder so the paths can be recreated.
#
# If you change these from $PWD, make sure to update `WINGS_DIR` in the panel service too.
# Do not change anything but the $PWD part as this is also hardcoded in the container.
- './srv/wings/tmp/:${PWD}/srv/wings/tmp/'
- './srv/wings/docker/containers/:${PWD}/srv/wings/docker/containers/'
- './srv/wings/:${PWD}/srv/wings/'
- './wings/logs/:${PWD}/srv/wings/logs/'
mailpit:
image: axllent/mailpit
volumes:
- ./data/mailpit/:/data
ports:
- '1025:1025'
- '8025:8025'
environment:
MP_MAX_MESSAGES: ${MP_MAX_MESSAGES:-5000}
MP_DATABASE: ${MP_DATABASE:-/data/mailpit.db}
MP_SMTP_AUTH_ACCEPT_ANY: ${MP_SMTP_AUTH_ACCEPT_ANY:-1}
MP_SMTP_AUTH_ALLOW_INSECURE: ${MP_SMTP_AUTH_ALLOW_INSECURE:-1}
networks:
default:
ipam:
config:
- subnet: 172.20.0.0/16
volumes:
panel_vendor:
panel_storage:
panel_bootstrap_cache:
mailpit_data: