Added Memos
This commit is contained in:
parent
ce58685691
commit
60dcae71ef
53
memos/docker-compose.yml
Normal file
53
memos/docker-compose.yml
Normal file
@ -0,0 +1,53 @@
|
||||
---
|
||||
x-logging:
|
||||
&default-logging
|
||||
driver: syslog
|
||||
options:
|
||||
tag: "container_name/{{.Name}}"
|
||||
labels: "LABEL"
|
||||
syslog-facility: local7
|
||||
|
||||
x-opt-values:
|
||||
&volume-opt
|
||||
driver_opts: &options
|
||||
type: "nfs"
|
||||
o: "addr=${IP},rw"
|
||||
|
||||
services:
|
||||
memos:
|
||||
image: neosmemo/memos:stable
|
||||
container_name: memos
|
||||
# Use labels if this container is hosted on the same machine as
|
||||
# the Caddy reverse proxy
|
||||
labels:
|
||||
caddy: ${MEMOS_HOSTNAME}
|
||||
caddy.log:
|
||||
caddy.encode: "zstd gzip"
|
||||
caddy.reverse_proxy: "{{upstreams 5230}}"
|
||||
restart: unless-stopped
|
||||
# This is not needed if labels are used. If this container is
|
||||
# hosted on a different machine under the same subnetwoork, use
|
||||
# its private IP address instead of 192.168.1.128. Check the
|
||||
# Caddyfile inside caddy-reverse-proxy folder for an example
|
||||
# on how to forward traffic to this container
|
||||
#
|
||||
# ports:
|
||||
# - "192.168.1.128:9000:5230"
|
||||
volumes:
|
||||
- /mnt/path:/var/opt/memos
|
||||
networks:
|
||||
- caddy
|
||||
logging: *default-logging
|
||||
|
||||
# Optional, needed if you are using an NFS server
|
||||
#
|
||||
# volumes:
|
||||
# volume:
|
||||
# <<: *volume-opt
|
||||
# driver_opts:
|
||||
# <<: *options
|
||||
# device: ":/mnt/path"
|
||||
|
||||
networks:
|
||||
caddy:
|
||||
external: true
|
||||
Loading…
x
Reference in New Issue
Block a user