Skip to content

Commit 7d5ac82

Browse files
authored
Publish as itzg/mc-proxy and also publish to GHCR (#185)
1 parent 04bec36 commit 7d5ac82

6 files changed

Lines changed: 54 additions & 22 deletions

File tree

.github/workflows/build.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ jobs:
4949
with:
5050
images: |
5151
${{ env.DOCKER_HUB_ORG }}/bungeecord
52+
${{ env.DOCKER_HUB_ORG }}/mc-proxy
53+
ghcr.io/${{ github.repository_owner }}/mc-proxy
5254
tags: |
5355
# For the "main" variant, it gets the tag as-is, without suffix
5456
type=ref,event=tag,enable=${{ matrix.variant == env.MAIN_VARIANT }}
@@ -80,6 +82,14 @@ jobs:
8082
username: ${{ secrets.DOCKER_USER }}
8183
password: ${{ secrets.DOCKER_PASSWORD }}
8284

85+
- name: Login to GHCR
86+
if: github.event_name != 'pull_request'
87+
uses: docker/login-action@v3.2.0
88+
with:
89+
registry: ghcr.io
90+
username: ${{ github.actor }}
91+
password: ${{ github.token }}
92+
8393
- name: Build and push
8494
id: docker_build
8595
uses: docker/build-push-action@v5.4.0

README.md

Lines changed: 34 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
2-
This is a Docker image of [BungeeCord](https://www.spigotmc.org/wiki/bungeecord/)
3-
and is intended to be used at the front-end of a cluster of
4-
[itzg/minecraft-server](https://hub.docker.com/r/itzg/minecraft-server/) containers.
1+
This is a Docker image that provides a choice of Minecraft proxies, such as [BungeeCord](https://www.spigotmc.org/wiki/bungeecord/) and [Velocity](https://papermc.io/software/velocity). It is intended to be used in combination with [itzg/minecraft-server](https://hub.docker.com/r/itzg/minecraft-server/) containers.
52

63
[![Build and Publish](https://github.com/itzg/docker-bungeecord/actions/workflows/build.yml/badge.svg)](https://github.com/itzg/docker-bungeecord/actions/workflows/build.yml)
74

@@ -14,13 +11,37 @@ you can disable online mode, which is required by bungeecord, by setting `ONLINE
1411
docker run ... -e ONLINE_MODE=FALSE itzg/minecraft-server
1512
```
1613

17-
[Here](docs/docker-compose.yml) is an example Docker Compose file.
14+
The following is an example that can be started with `docker compose up -d`:
15+
16+
```yaml
17+
services:
18+
mc:
19+
image: itzg/minecraft-server
20+
environment:
21+
EULA: "TRUE"
22+
ONLINE_MODE: "FALSE"
23+
volumes:
24+
- mc-data:/data
25+
proxy:
26+
image: itzg/mc-proxy
27+
environment:
28+
BUNGEE_JAR_REVISION: "1"
29+
CFG_MOTD: Powered by Docker
30+
REPLACE_ENV_VARIABLES: "true"
31+
ports:
32+
- "25565:25577"
33+
volumes:
34+
- ./config.yml:/config/config.yml
35+
- proxy-data:/server
36+
37+
volumes:
38+
mc-data:
39+
proxy-data:
40+
```
1841
1942
## Healthcheck
2043
21-
This image contains [mc-monitor](https://github.com/itzg/mc-monitor) and uses
22-
its `status` command to continually check on the container's. That can be observed
23-
from the `STATUS` column of `docker ps`
44+
This image contains [mc-monitor](https://github.com/itzg/mc-monitor) and uses its `status` command to continually check on the container's. That can be observed from the `STATUS` column of `docker ps`
2445

2546
```
2647
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
@@ -241,7 +262,7 @@ _The `-i` is not needed in this case._
241262
242263
In order to attach and interact with the Bungeecord server, add `-it` when starting the container, such as
243264
244-
docker run -d -it -p 25565:25577 --name mc itzg/bungeecord
265+
docker run -d -it -p 25565:25577 --name mc itzg/mc-proxy
245266
246267
With that you can attach and interact at any time using
247268
@@ -312,7 +333,7 @@ version: "3.8"
312333

313334
services:
314335
proxy:
315-
image: itzg/bungeecord
336+
image: itzg/mc-proxy
316337
ports:
317338
- "25577:25577"
318339
volumes:
@@ -395,19 +416,19 @@ Supports the file formats:
395416
This image may be run as a non-root user but does require an attached `/server`
396417
volume that is writable by that uid, such as:
397418

398-
docker run ... -u $uid -v $(pwd)/data:/server itzg/bungeecord
419+
docker run ... -u $uid -v $(pwd)/data:/server itzg/mc-proxy
399420

400421
## Java Versions
401422

402423
The `latest` image tag is based on Java 21, but alternate image tags are available to run with a different java version.
403424

404425
The image Java variant can be used as shown here:
405426

406-
itzg/bungeecord:{variant}
427+
itzg/mc-proxy:{variant}
407428

408429
or using release version, such as `2024.5.0`
409430

410-
itzg/bungeecord:{release}-{variant}
431+
itzg/mc-proxy:{release}-{variant}
411432

412433
| Variant | Java Version | CPU types |
413434
|---------|--------------|-------------------|

docs/docker-compose.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
version: '3.5'
2-
31
services:
42
mc:
53
image: itzg/minecraft-server
64
environment:
75
EULA: "TRUE"
86
ONLINE_MODE: "FALSE"
9-
bungeecord:
10-
image: itzg/bungeecord
7+
volumes:
8+
- mc-data:/data
9+
proxy:
10+
image: itzg/mc-proxy
1111
environment:
1212
BUNGEE_JAR_REVISION: "1"
1313
CFG_MOTD: Powered by Docker
@@ -16,7 +16,8 @@ services:
1616
- "25565:25577"
1717
volumes:
1818
- ./config.yml:/config/config.yml
19-
- bungeecord:/server
19+
- proxy-data:/server
2020

2121
volumes:
22-
bungeecord: {}
22+
mc-data:
23+
proxy-data:

docs/multi-compose-projects/proxy/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: "3.8"
22

33
services:
44
proxy:
5-
image: itzg/bungeecord
5+
image: itzg/mc-proxy
66
environment:
77
TYPE: WATERFALL
88
ports:

docs/velocity/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ services:
99
volumes:
1010
- ./paper-global.yml:/config/paper-global.yml
1111
proxy:
12-
image: itzg/bungeecord
12+
image: itzg/mc-proxy
1313
environment:
1414
TYPE: VELOCITY
1515
DEBUG: "false"

docs/waterfall/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66
TYPE: PAPER
77
ONLINE_MODE: "FALSE"
88
proxy:
9-
image: itzg/bungeecord
9+
image: itzg/mc-proxy
1010
environment:
1111
TYPE: WATERFALL
1212
ENABLE_RCON: "true"

0 commit comments

Comments
 (0)