Left4DevOps / l4d2-docker

L4D2 Server Docker Image
28 stars 9 forks source link

How to use start flags in docker compose? #7

Closed brielov closed 2 months ago

brielov commented 2 months ago

So for example I would like to run the server in versus mode only. The question would be how can I replicate something like docker run left4devops/l4d2 -port 27020 +map "c14m1_junkyard" +sv_lan 1 but in the docker compose file?

hazmeister commented 2 months ago

Just pushed a new image. You can now set the game mode by setting the DEFAULT_MODE environment variable.

if you still want to override the launch options, you can use command: in docker-compose.yml