Allow for MAPPING to be declared with newline delimited entries (#241)

This commit is contained in:
Geoff Bourne
2023-10-28 16:54:46 -05:00
committed by GitHub
parent ccc0b6f9f4
commit 4f54002231
5 changed files with 59 additions and 50 deletions
+7 -4
View File
@@ -1,4 +1,4 @@
version: '3.4'
version: "3.8"
services:
vanilla:
@@ -18,9 +18,12 @@ services:
environment:
# enable API
API_BINDING: ":25564"
DEBUG: true
MAPPING: |
vanilla.example.com=vanilla:25565
forge.example.com=forge:25565
ports:
- 25565:25565
- "25565:25565"
# bind the API port to only loopback to avoid external exposure
- 127.0.0.1:25564:25564
command: --mapping=vanilla.example.com=vanilla:25565,forge.example.com=forge:25565
- "127.0.0.1:25564:25564"