Files
notes/tiddlywiki/mazzolino_tiddlywiki with docker.md
2026-03-12 22:01:38 +01:00

42 lines
701 B
Markdown
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