Skip to content

h-exx/docker-openttd-patches

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

62 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Docker Image for OpenTTD Patches

Docker Image Version (latest semver) license GitHub stars Contributors Docker Image CI

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

Docker Run

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

Docker Compose

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

Where do I find my saves?

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

Issues

https://github.com/h-exx/docker-openttd-patches/issues

Forked from rogerrum's docker-openttd

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

Contribute

  • I am happy for any feedback! Create issues, discussions, ... feel free and involve!
  • Send me a PR

About

๐Ÿš‚ OpenTTD Patches in a container ๐Ÿ›ค๏ธ

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Dockerfile 100.0%