Skip to content

rogerrum/docker-openttd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

45 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Docker Image for OpenTTD

Docker Image Version (latest semver) license GitHub stars Contributors

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

Docker Run

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

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/rogerrum/docker-openttd:latest
    container_name: openttd
    restart: unless-stopped
    ports:
      - 3000:3000
    volumes:
      - ./config:/config:rw

Issues

https://github.com/rogerrum/docker-openttd/issues

Contribute

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