Code Monkey home page Code Monkey logo

docker-twserver's Introduction

docker-twserver logo

A Docker image for the twserver-go project based on the official Alpine Linux image.


Docker Tag Version Platform Description
latest 1.1 amd64, arm64 Latest release

UsageUsing ComposeManual buildLicense

Usage

  • Create and run a container with a volume attached to keep the data safe:
docker run -d \
  --name twserver \
  -p 8080:8080/tcp \
  -v twserver_data:/home/tw \
  -i k4rian/twserver
  • Same as above but using a different port (8080(default) -> 52041):
docker run -d \
  --name twserver \
  -p 52041:8080/tcp \
  -v twserver_data:/home/tw \
  -i k4rian/twserver

Using Compose

docker compose -p twserver up -d

A named volume is defined in order to store the server data that can be recovered if the container is removed and restarted.

Manual build

Requirements:
— Docker >= 18.09.0
— Git (optional)

Like any Docker image the building process is pretty straightforward:

  • Clone (or download) the GitHub repository to an empty folder on your local machine:
git clone https://github.com/K4rian/docker-twserver.git .
  • Then run the following command inside the newly created folder:
docker build --no-cache -t k4rian/twserver .

License

MIT

docker-twserver's People

Contributors

k4rian avatar

Stargazers

 avatar  avatar

Watchers

 avatar

docker-twserver's Issues

Volume ownership

Many thanks for twserver and docker-twserver.

Do you have any suggestions about mounting host directories into the container with docker-compose?

When I follow the docker run instructions from the README, either directly, or with docker-compose the container fails to start as the host machine directory seems to overwrite /home/tw/twserver so nothing starts.

My run command looks like:
docker run -d --rm --name twserver -v /data/tiddlywiki:/home/tw -p 8080:8080 k4rian/twserver

My docker-compose.yml file looks like:

version: "3.7"
services:
  twserver:
    image: "k4rian/twserver:latest"
    container_name: "twserver"
    volumes:
      - type: bind
        source: /data/tiddlywiki
        target: /home/tw

Then, if I change it to mount /home/tw/www, and /home/tw/backup individually, the service starts up, but there are file permission issues, and the server silently fails to update the index.html file upon tiddly save, and no backup files are created.

Any ideas would be gratefully received.

Cheers,

Dave Webb

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.