Add environment variables for port mappings

This commit is contained in:
2026-01-16 18:02:52 +00:00
parent 379bb85a42
commit 0024c5e1d7
2 changed files with 6 additions and 6 deletions

View File

@@ -25,7 +25,7 @@ services:
minecraft_server_network: minecraft_server_network:
ipv4_address: "10.100.1.3" ipv4_address: "10.100.1.3"
ports: ports:
- 25000:25565 - ${VELOCITY_PORT}:25565
volumes: volumes:
- velocity_data:/server:rw - velocity_data:/server:rw
- ./velocity/config:/config:ro - ./velocity/config:/config:ro
@@ -78,7 +78,7 @@ services:
minecraft_server_network: minecraft_server_network:
ipv4_address: "10.100.1.6" ipv4_address: "10.100.1.6"
ports: ports:
- 8100:8100 - ${BLUEMAP_PORT}:8100
volumes: volumes:
- bluemap_data:/app/data:rw - bluemap_data:/app/data:rw
- bluemap_web:/app/web:rw - bluemap_web:/app/web:rw
@@ -318,7 +318,7 @@ services:
minecraft_server_network: minecraft_server_network:
ipv4_address: "10.100.1.2" ipv4_address: "10.100.1.2"
ports: ports:
- 5434:5432 - ${LUCKPERMS_PORT}:5432
volumes: volumes:
- luckperms_data:/var/lib/postgresql/data:rw - luckperms_data:/var/lib/postgresql/data:rw
- /etc/passwd:/etc/passwd:ro - /etc/passwd:/etc/passwd:ro

View File

@@ -1,11 +1,11 @@
VELOCITY_PORT=${CFG_VELOCITY_PORT}
BLUEMAP_PORT=${CFG_BLUEMAP_PORT}
RCON_PASSWORD=${CFG_RCON_PASSWORD} RCON_PASSWORD=${CFG_RCON_PASSWORD}
FORWARDING_SECRET=${CFG_FORWARDING_SECRET} FORWARDING_SECRET=${CFG_FORWARDING_SECRET}
DCLINK_GUILD=${CFG_DCLINK_GUILD} DCLINK_GUILD=${CFG_DCLINK_GUILD}
DCLINK_CHANNEL=${CFG_DCLINK_CHANNEL} DCLINK_CHANNEL=${CFG_DCLINK_CHANNEL}
DCLINK_ROLE=${CFG_DCLINK_ROLE} DCLINK_ROLE=${CFG_DCLINK_ROLE}
DCLINK_TOKEN=${CFG_DCLINK_TOKEN} DCLINK_TOKEN=${CFG_DCLINK_TOKEN}
LUCKPERMS_DB_PASSWORD=${CFG_LUCKPERMS_DB_PASSWORD} LUCKPERMS_DB_PASSWORD=${CFG_LUCKPERMS_DB_PASSWORD}
LUCKPERMS_PORT=${CFG_LUCKPERMS_PORT}