Forked from rogerrum/docker-openttd
A Docker image for OpenTTD Patches to run inside Docker container and access it remotely using web browser.
Repository name in ghcr.io: ghcr.io/h-exx/docker-openttd-patches
Repository name in Docker Hub: hhexx/docker-openttd-patches
Published via automated build mechanism
To simply do a quick and dirty run of the OpenTTD container:
docker run \
-d --rm \
--name openttd-patches \
-v=${pwd}/config:/config \
--publish=3000:3000 \
ghcr.io/h-exx/docker-openttd-patches:latest
Access the game in browser using the url
http://localhost:3000
To stop the container simply run:
$ docker stop openttd-patches
To remove the container simply run:
$ docker rm openttd-patches
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/h-exx/docker-openttd-patches:latest
container_name: openttd-patches
restart: unless-stopped
ports:
- 3000:3000 # Web UI
#- 3979:3979 # Dedicated Server Port
volumes:
- ./config:/config:rw
In the /config
file on the host system, there is a hidden .local folder.
The full path would be: /config/.local/share/openttd/save/
In the Web UI, it is in the following path:
~/.local/share/openttd/save
https://github.com/h-exx/docker-openttd-patches/issues
If you couldn't tell already, this is a fork from rogerrum's Docker container of his docker-openttd.
I am unfortunately not as talented in making Docker containers (yet) as him, so all credit goes to him for this.
Changes made:
- Swapped out OpenTTD for JGRennison's OpenTTD-Patches This is covered by a GNU General Public License. Please read more about here
- Updated this documentation to have my OpenTTD Patches Docker container
- Edited the Github Workflow code stuff to auto-update from OpenTTD-Patches rather than OpenTTD
- I am happy for any feedback! Create issues, discussions, ... feel free and involve!
- Send me a PR