701 B
Executable File
701 B
Executable File
Get basic docker image
docker pull mazzolino/tiddlywiki
Customize the image upgrading tiddlywiki
Create persistent directory:
mkdir -p /app/persistent_docker/tiddlywiki
Create Dockerfile:
FROM mazzolino/tiddlywiki:latest
MAINTAINER Valeriu PLESNILA
RUN npm update -g tiddlywiki
Build new image my_tiddlywiki:
docker build -t my_tiddlywiki .
Create docker-compose.yaml file:
services:
wiki:
image: my_tiddlywiki
restart: always
environment:
- USERNAME=*****
- PASSWORD=*****
ports:
- 8080:8080
volumes:
- /app/persistent_docker/tiddlywiki:/var/lib/tiddlywiki
Create and run the container:
docker-compose up -d