diff --git a/install-trilium-on-docker/docker-compose.yml b/install-trilium-on-docker/docker-compose.yml new file mode 100644 index 0000000..b17971f --- /dev/null +++ b/install-trilium-on-docker/docker-compose.yml @@ -0,0 +1,36 @@ +version: "3" # Specifies the version of the Docker Compose file format + +# Service definitions for the big-bear-trilium application +services: + # Service name: trilium + # The `trilium` service definition + trilium: + # Name of the container + container_name: M_Viper-trilium + + # Image to be used for the container + image: zadam/trilium:0.62.6 + + # Container restart policy + restart: unless-stopped + + # Environment variables + environment: + - TRILIUM_DATA_DIR=/home/node/trilium-data + + # Volumes to be mounted to the container + volumes: + # Mounting the local trilium_data directory to /home/node/trilium-data inside the container + - trilium_data:/home/node/trilium-data + + # Ports mapping between host and container + ports: + # Mapping port 8080 of the host to port 8080 of the container + - "8080:8080" + +# Volumes +volumes: + # Define a named volume for data persistence + trilium_data: + # Use the local storage driver + driver: local