forked from ccarney16/pterodactyl-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
71 lines (65 loc) · 1.68 KB
/
docker-compose.yml
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
##
# Pterodactyl Panel Docker Setup by ccarney
##
version: '2.1'
services:
##
# MariaDB (MySQL) Server
# If you rely on another MySQL/MariaDB instance,
# this can be safely removed. If you want to have
# your game servers be able to access this, be sure
# to declare your ports.
##
mysql:
env_file: .env
image: mariadb:10.2
restart: always
volumes:
- ./db:/var/lib/mysql
# Panel Cache
# This service is required for the panel to function.
# You can use either redis or memcached, but redis
# is provided by default here.
##
cache:
image: redis:alpine
restart: always
##
# Pterodactyl Panel
# This is the main service that will be seen publically.
##
panel:
depends_on:
- cache
- mysql
env_file: .env
image: ccarney16/pterodactyl-panel:latest
restart: always
volumes:
- ./data:/data
ports:
- 80:80
- 443:443
##
# Pterodactyl Daemon
# If you don't plan on running the daemon on the same machine,
# you may comment/delete the section below.
##
daemon:
depends_on:
- panel
image: ccarney16/pterodactyl-daemon:latest
ports:
- 8080:8080
privileged: true
restart: always
volumes:
- /srv/daemon/config:/srv/daemon/config
- /srv/daemon/packs:/srv/daemon/packs
- /srv/daemon-data:/srv/daemon-data
- /tmp/pterodactyl:/tmp/pterodactyl
- /etc/localtime:/etc/localtime
# Docker socket and directory, needed to communicate to docker
# NOTE: If you are using docker in a different directory, please change below to reflect that!
- ${DOCKER_ROOT:-/var/lib/docker}:${DOCKER_ROOT:-/var/lib/docker}
- ${DOCKER_SOCKET:-/var/run/docker.sock}:${DOCKER_SOCKET:-/var/run/docker.sock}