-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
120 lines (118 loc) · 3.02 KB
/
docker-compose.yml
File metadata and controls
120 lines (118 loc) · 3.02 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
services:
traefik:
image: traefik:v2.11
restart: unless-stopped
command: --configFile=/etc/traefik/traefik.yml
networks:
traefik:
aliases:
- pterodactyl.test
- wings.pterodactyl.test
- s3.minio.pterodactyl.test
ports:
- "443:443"
- "8080:8080"
security_opt:
- no-new-privileges:true
volumes:
- ./traefik:/etc/traefik:ro
- ./docker/certificates:/etc/certs:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
app:
build:
dockerfile: ./build/panel/Dockerfile
stop_grace_period: '1s'
networks:
- traefik
- pterodactyl
depends_on:
- redis
- mysql
volumes:
- ./code/panel:/var/www/html
- ./docker/certificates:/etc/certs:ro
- ./docker/php:/etc/php/mods-available:ro
environment:
TZ: ${TZ:-UTC}
WWWUSER: ${WWWUSER:-$$(id -u)}
WWWGROUP: ${WWWGROUP:-$$(id -g)}
wings:
build:
dockerfile: ./build/wings/Dockerfile
stop_grace_period: '1s'
tty: true
stdin_open: true
networks:
- traefik
- pterodactyl
ports:
- "2022:2022"
volumes:
- ./code/wings:/home/root/wings
- go_modules:/root/go
- /tmp/pterodactyl:/tmp/pterodactyl
- /var/lib/pterodactyl:/var/lib/pterodactyl
- /var/run/docker.sock:/var/run/docker.sock:ro
cap_add:
- SYS_ADMIN
devices:
- /dev/loop0
- /dev/loop-control
mysql:
image: mysql:8.4
restart: unless-stopped
ports:
- "3306:3306"
command:
- --innodb-buffer-pool-size=1G
- --innodb_redo_log_capacity=536870912
- --innodb-flush-log-at-trx-commit=0
- --lower-case-table-names=1
- --disabled_storage_engines=ARCHIVE,BLACKHOLE,CSV,MEMORY,MRG_MYISAM,MyISAM
- --enforce_gtid_consistency=1
- --innodb_lock_wait_timeout=120
- --sql-mode=REAL_AS_FLOAT,PIPES_AS_CONCAT,ANSI_QUOTES,IGNORE_SPACE,ONLY_FULL_GROUP_BY,ANSI,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
volumes:
- mysql:/var/lib/mysql:delegated
- ./docker/mysql:/docker-entrypoint-initdb.d:ro
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: pterodactyl
MYSQL_USER: pterodactyl
MYSQL_PASSWORD: password
networks:
- pterodactyl
healthcheck:
test: [ 'CMD', 'mysql', '-h', 'mysql', '-u', 'pterodactyl', '-ppterodactyl', '-e', 'quit' ]
redis:
image: redis:alpine
restart: unless-stopped
networks:
- pterodactyl
healthcheck:
test: [ 'CMD', 'redis-cli', 'ping' ]
minio:
image: minio/minio:latest
restart: unless-stopped
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: admin
MINIO_ROOT_PASSWORD: password
expose:
- 9000
- 9001
networks:
- traefik
- pterodactyl
volumes:
- minio:/data
networks:
pterodactyl:
traefik:
volumes:
mysql:
driver: local
minio:
driver: local
go_modules:
driver: local