https://github.com/embeddedt/playit-docker
Docker image for playit.gg agent
https://github.com/embeddedt/playit-docker
Last synced: 2 months ago
JSON representation
Docker image for playit.gg agent
- Host: GitHub
- URL: https://github.com/embeddedt/playit-docker
- Owner: embeddedt
- Created: 2022-10-08T15:43:40.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-08T15:45:38.000Z (over 3 years ago)
- Last Synced: 2025-05-14T07:45:04.597Z (about 1 year ago)
- Language: Dockerfile
- Size: 2.93 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# playit-docker

Simple Docker image that allows the [playit.gg](https://playit.gg/) agent to be
used in a Docker container.
This is intended to be used by server admins already using a Dockerized Minecraft
server. Most casual users are probably better off running the playit agent directly.
## Example usage with Docker Compose and [docker-minecraft-server](https://github.com/itzg/docker-minecraft-server)
1. Create `docker-compose.yml` with the following contents:
```yaml
version: "3"
services:
mc:
image: itzg/minecraft-server
networks:
serverbridge:
ipv4_address: 10.1.0.2
expose:
- 25565
environment:
EULA: "TRUE"
VERSION: "1.12.2"
tty: true
stdin_open: true
restart: unless-stopped
volumes:
- "./data:/data"
playit:
image: embeddedt/playit
stop_grace_period: 1s
networks:
serverbridge:
ipv4_address: 10.1.0.3
volumes:
- "./playit:/etc/playit"
networks:
serverbridge:
driver: bridge
ipam:
driver: default
config:
- subnet: 10.1.0.0/24
```
2. Start the Docker environment by running `docker compose up`.
3. Claim your playit agent using the link in the log.
4. Create a playit tunnel to IP 10.1.0.2, port 25565.
5. You should now be able to connect as normal.
## Known issues
* Minecraft clients currently seem to be unable to ping the server, even
though connecting works fine.