diff --git a/memos/.env.sample b/memos/.env.sample new file mode 100644 index 0000000..ff7f02b --- /dev/null +++ b/memos/.env.sample @@ -0,0 +1,7 @@ +# Uncomment and change the following variables if you want to use them. +#RESTART=unless-stopped +#SYNOLOGY_VOLUME=volume1 +#STACK_NAME=memos +#MEMOS_CONTAINER_NAME=Memos +#MEMOS_TAG=latest +#MEMOS_PORT=5230 diff --git a/memos/compose.yml b/memos/compose.yml new file mode 100644 index 0000000..e0509ab --- /dev/null +++ b/memos/compose.yml @@ -0,0 +1,12 @@ +services: + # Memos + memos: + container_name: ${MEMOS_CONTAINER_NAME:-Memos} + image: neosmemo/memos:${MEMOS_TAG:-latest} + restart: ${RESTART:-unless-stopped} + healthcheck: + test: wget --no-verbose --tries=1 --spider http://localhost:5230/ + ports: + - ${MEMOS_PORT:-5230}:5230 + volumes: + - /${SYNOLOGY_VOLUME:-volume1}/docker/${STACK_NAME:-memos}/${MEMOS_CONTAINER_NAME:-Memos}/var/opt/memos:/var/opt/memos