-
-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathdocker-compose.develop.yml
More file actions
185 lines (173 loc) · 6.08 KB
/
Copy pathdocker-compose.develop.yml
File metadata and controls
185 lines (173 loc) · 6.08 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
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: no
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: no
panel:
build:
context: .
args:
DEV: "true"
image: hydrodactyl:develop
restart: no
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/'
HYDRODACTYL_DOCKER_DEV: 'true'
MAIL_HOST: 'mailhog'
MAIL_PORT: 1025
MAIL_DRIVER: 'smtp'
APP_BACKUP_DRIVER: 's3'
AWS_DEFAULT_REGION: 'us-east-1'
AWS_ACCESS_KEY_ID: 'garage'
AWS_SECRET_ACCESS_KEY: 'garage'
AWS_BACKUPS_BUCKET: 'hydrodactyl'
AWS_ENDPOINT: 'http://garage:3900'
AWS_USE_PATH_STYLE_ENDPOINT: 'true'
garage:
image: dxflrs/garage:v2.2.0
hostname: garage
expose:
- '3900'
- '3901'
- '3903'
volumes:
- ./srv/garage:/var/lib/garage
- ./srv/garage.toml:/etc/garage.toml
environment:
GARAGE_ADMIN_TOKEN: 'dev-admin-token'
garage-setup:
image: amazon/aws-cli:latest
depends_on:
- garage
entrypoint: >
/bin/sh -c "
echo 'Waiting for Garage to be ready...'
sleep 5
echo 'Setup complete. Configure Garage via admin API or CLI.'
exit 0
"
wings:
image: ghcr.io/pterodactyl/wings:latest
restart: no
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/pterodactyl/tmp/:${PWD}/srv/pterodactyl/tmp/'
- './srv/pterodactyl/docker/containers/:${PWD}/srv/pterodactyl/docker/containers/'
- './srv/pterodactyl/:${PWD}/srv/pterodactyl/'
- './srv/pterodactyl/logs/:${PWD}/srv/pterodactyl/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:
volumes:
panel_vendor:
panel_storage:
panel_bootstrap_cache:
mailpit_data: