-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Service Discovery option for non-Swarm Docker (#316)
- Loading branch information
1 parent
8b3180d
commit 5d7063f
Showing
6 changed files
with
513 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM golang:1.20 as builder | ||
FROM golang:1.22 AS builder | ||
|
||
WORKDIR /build | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
services: | ||
mcfoo: | ||
image: itzg/minecraft-server | ||
environment: | ||
EULA: "TRUE" | ||
MOTD: "foo" | ||
volumes: | ||
- mcfoodata:/data | ||
labels: | ||
mc-router.host: "foo.localhost" | ||
mc-router.default: true | ||
mcbar: | ||
image: itzg/minecraft-server | ||
environment: | ||
EULA: "TRUE" | ||
MOTD: "bar" | ||
volumes: | ||
- mcbardata:/data | ||
labels: | ||
mc-router.host: "bar.localhost" | ||
router: | ||
image: itzg/mc-router:latest | ||
command: "-debug -in-docker" | ||
depends_on: | ||
- mcfoo | ||
- mcbar | ||
ports: | ||
- "25565:25565" | ||
volumes: | ||
- /var/run/docker.sock:/var/run/docker.sock:ro | ||
|
||
volumes: | ||
mcfoodata: | ||
mcbardata: |
Oops, something went wrong.