Skip to content

Commit 65c1701

Browse files
committedNov 8, 2024·
feat: add wing compose file
1 parent f764e4d commit 65c1701

File tree

4 files changed

+70
-4
lines changed

4 files changed

+70
-4
lines changed
 

‎README.md

+16-4
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,31 @@
1010

1111
## How to setup the pterodactyl panel
1212

13-
Open your github secrets and add the following:
13+
Fork this repo.
14+
Open your github repo secrets and add the following:
1415

1516
- `CODINGLABGG_SSH_KEY` : The private key to connect to the server
1617
- `CODINGLABGG_SSH_USER` : The user used to connect to the server (`pterodactyl`)
17-
- `CODINGLABGG_SSH_HOST` : The host/ip of the server (`codinglab.gg`)
18+
- `CODINGLABGG_SSH_HOST` : The host/ip of the serve that run the panel (`codinglab.gg`)
1819
- `CODINGLABGG_SSH_CERT` : The public certificate of the server (`ssh-keyscan codinglab.gg`)
1920

2021
Make sure your server is setup with docker and docker compose plugin, and your user can run docker commands.
2122

2223
Then push to the repository, [the github `panel-deployment.yml` action](./.github/workflows/panel-deployment.yml) will deploy the panel to the server.
2324

25+
Now you should be able to access the panel at your desired domain, under https.
26+
27+
You still have to create your first user (admin) tho.
28+
To do so, go into your github repo > actions > panel-create-user.yml > run workflow > and fill this form :
29+
![image](docs/pterodactyl/panel-create-user-workflow.png)
30+
2431
## How to setup a fresh game server
2532

26-
The panel and the game server are different entities. The panel is the dashboard to manage the game servers. The game servers are the actual servers where the games are running.
33+
First you need to create a Location, then a Node in the panel.
34+
35+
Click on `Nodes` > `Create New` > Fill the form with the server's informations.
36+
37+
Then you need to copy the Node Configuration `config.yml` from the panel.
2738

28-
To setup a fresh game server, you need to run the wings agent on the server. The wings agent is the software that connects the game server to the panel.
39+
To setup a fresh game server, you need to run the wings agent on the server.
40+
The wings agent is the software that connects the game server to the panel.
66.2 KB
Loading

‎pterodactyl/wings/.env.template

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Docker compose container prefix
2+
COMPOSE_PROJECT_NAME=pterodactyl
3+
4+
# Data directory
5+
DATA_DIR=../data
6+
7+
# Full path to wings volumes data
8+
# NOTE: This path has to match the "Daemon Server File Directory" path you apply when creating a node in the panel!
9+
# The default setting is "/var/lib/pterodactyl/", however this can be changed to something like:
10+
# "/srv/docker/docker-pterodactyl/data/wings/lib/volumes" in order to store everything in one place, just make sure the paths in panel and here match!
11+
SERVERS_DATA_FULL_PATH=/var/lib/pterodactyl/
12+
13+
# Wings domain
14+
WINGS_DOMAIN=game.codinglab.gg

‎pterodactyl/wings/docker-compose.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
services:
2+
wings:
3+
image: ghcr.io/pterodactyl/wings:latest
4+
env_file:
5+
- .env
6+
restart: always
7+
networks:
8+
- pterodactyl
9+
- wings0
10+
ports:
11+
- '2022:2022'
12+
- '443:443'
13+
tty: true
14+
environment:
15+
TZ: 'UTC'
16+
WINGS_UID: 988
17+
WINGS_GID: 988
18+
WINGS_USERNAME: pterodactyl
19+
volumes:
20+
- '/var/run/docker.sock:/var/run/docker.sock'
21+
- '/var/lib/docker/containers/:/var/lib/docker/containers/'
22+
- '/tmp/pterodactyl/:/tmp/pterodactyl/'
23+
- '/etc/ssl/certs:/etc/ssl/certs:ro'
24+
- '${DATA_DIR}/wings/etc/:/etc/pterodactyl/'
25+
- '${DATA_DIR}/wings/logs:/var/log/pterodactyl/'
26+
- '${SERVERS_DATA_FULL_PATH}:${SERVERS_DATA_FULL_PATH}'
27+
# required if ssl by letsencrypt is enabled
28+
- '/etc/letsencrypt:/etc/letsencrypt'
29+
30+
networks:
31+
pterodactyl:
32+
external: true
33+
wings0:
34+
name: wings0
35+
driver: bridge
36+
ipam:
37+
config:
38+
- subnet: '172.21.0.0/16'
39+
driver_opts:
40+
com.docker.network.bridge.name: wings0

0 commit comments

Comments
 (0)
Please sign in to comment.