Skip to content

Commit

Permalink
docs: more doc examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesIves committed Jul 15, 2024
1 parent 2da7ff4 commit dc324b1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 12 deletions.
16 changes: 8 additions & 8 deletions container/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM ubuntu:18.04

LABEL org.opencontainers.image.title="hlds" \
org.opencontainers.image.description="🐋 📦 Half-Life Dedicated Server powered by Docker. Supports all the classic GoldSrc Half-Life games and mods, including the ability to add custom configurations and plugins." \
org.opencontainers.image.vendor="https://jamesiv.es" \
org.opencontainers.image.authors="James Ives" \
org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.url="https://github.com/jamesives/hlds-docker" \
org.opencontainers.image.documentation="https://github.com/jamesives/hlds-docker" \
org.opencontainers.image.source="https://github.com/jamesives/hlds-docker"
LABEL org.opencontainers.image.title="hlds"
LABEL org.opencontainers.image.description="🐋 📦 Half-Life Dedicated Server powered by Docker. Supports all the classic GoldSrc Half-Life games and mods, including the ability to add custom configurations and plugins."
LABEL org.opencontainers.image.vendor="https://jamesiv.es"
LABEL org.opencontainers.image.authors="James Ives"
LABEL org.opencontainers.image.licenses="MIT"
LABEL org.opencontainers.image.url="https://github.com/jamesives/hlds-docker"
LABEL org.opencontainers.image.documentation="https://github.com/jamesives/hlds-docker"
LABEL org.opencontainers.image.source="https://github.com/jamesives/hlds-docker"

# Sets an environment variable for the game to install.
# Supported games: valve, cstrike, czero, dod, dmc, gearbox, ricochet, tfc
Expand Down
17 changes: 13 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
services:
hlds:
build: docker
# 📣 Adjust the image value here with the desired game you want the server to use.
# 📣 Adjust the image value here with the desired game you want the server to use. Options include:
# 🔧 jives/hlds:valve (Half-Life Deathmatch)
# 🔧 jives/hlds:cstrike (Counter-Strike)
# 🔧 jives/hlds:czero (Counter-Strike: Condition Zero)
# 🔧 jives/hlds:dmc (Deathmatch Classic)
# 🔧 jives/hlds:gearbox (Half-Life Opposing Force)
# 🔧 jives/hlds:ricochet (Ricochet)
# 🔧 jives/hlds:dod (Day of Defeat)
# 🔧 jives/hlds:tfc (Team Fortress Classic)
image: jives/hlds:cstrike
# 📣 Learn more about these volumes in the advanced setup guides.
# 📣 Learn more about these volumes in the advanced setup guides: https://github.com/JamesIves/hlds-docker?tab=readme-ov-file#advanced-setup-%EF%B8%8F
volumes:
- "./config:/temp/config"
- "./mods:/temp/mods"
Expand All @@ -13,6 +21,7 @@ services:
- "26900:2690/udp"
environment:
- GAME=${GAME}
# 📣 Modify your server startup commands here.
# 📣 Modify your server startup commands here, you can add more flags as needed,
# 📣 Remember: Stating map is based on the game, and will likely be different between images.
command: +maxplayers 12 +map cs_italy
# 📣 You should also modify the rcon_password value so you can use server admin commands.
command: +log on +rcon_password "changeme" +maxplayers 12 +map cs_italy

0 comments on commit dc324b1

Please sign in to comment.