init: CT104 untracked stack compose files
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
services:
|
||||
memos:
|
||||
image: neosmemo/memos:stable
|
||||
container_name: memos
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "17000:5230"
|
||||
volumes:
|
||||
- /mnt/pve/unas/services/memos:/var/opt/memos
|
||||
environment:
|
||||
MEMOS_PORT: 5230
|
||||
MEMOS_DRIVER: postgres
|
||||
MEMOS_DSN: "postgresql://memos:${MEMOS_PG_PASSWORD}@192.168.1.6:5432/memos?sslmode=disable"
|
||||
MEMOS_INSTANCE_URL: https://memos.nuclide.systems
|
||||
MEMOS_S3_ENDPOINT: http://garage:3900
|
||||
MEMOS_S3_REGION: us-east-1
|
||||
MEMOS_S3_ACCESS_KEY: GK55210bd6b56d92891db26fac
|
||||
MEMOS_S3_SECRET_KEY: d0af9e4eb69d7773ffa17950feee27925dbc70eb3efd4ee23a3e1324672c869a
|
||||
MEMOS_S3_BUCKET: memos
|
||||
MEMOS_S3_PATH_STYLE: true
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: "0.5"
|
||||
memory: 512M
|
||||
reservations:
|
||||
cpus: "0.25"
|
||||
memory: 256M
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5230/api/status"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
labels:
|
||||
- "homepage.group=productivity"
|
||||
- "homepage.name=Memos"
|
||||
- "homepage.icon=sh-memos"
|
||||
- "homepage.href=https://memos.nuclide.systems"
|
||||
- "homepage.instance.internal.href=http://192.168.1.40:17000"
|
||||
- "homepage.instance.public.href=https://memos.nuclide.systems"
|
||||
- "homepage.widget.type=memos"
|
||||
- "homepage.widget.url=http://memos:5230"
|
||||
- "homepage.widget.fields=[\"status\"]"
|
||||
|
||||
networks:
|
||||
default:
|
||||
external: true
|
||||
name: shared_backend
|
||||
Reference in New Issue
Block a user