A Docker image for OpenTTD to run inside Docker container and access it remotely using web browser.
Repository name in ghcr.io: ghcr.io/rogerrum/docker-openttd
Repository name in Docker Hub: rogerrum/docker-openttd
Published via automated build mechanism
To simply do a quick and dirty run of the OpenTTD container:
docker run \
-d --rm \
--name openttd \
-v=${pwd}/config:/config \
--publish=3000:3000 \
ghcr.io/rogerrum/docker-openttd:latest
Access the game in browser using the url
http://localhost:3000
To stop the container simply run:
$ docker stop openttd
To remove the container simply run:
$ docker rm openttd
If you don't want to type out these long Docker commands, you could optionally use docker-compose to set up your image. Just download the repo and run it like so:
version: '3.8'
services:
openttd:
image: ghcr.io/rogerrum/docker-openttd:latest
container_name: openttd
restart: unless-stopped
ports:
- 3000:3000
volumes:
- ./config:/config:rw
https://github.com/rogerrum/docker-openttd/issues
- I am happy for any feedback! Create issues, discussions, ... feel free and involve!
- Send me a PR