modify(stack): stack yaml modify

This commit is contained in:
GengY
2024-03-05 10:28:55 +08:00
parent 5d80a9e021
commit a365d86908
6 changed files with 27 additions and 9 deletions

18
memos/local.stack.yml Normal file
View File

@@ -0,0 +1,18 @@
# run:: docker compose -p memos -f ./memos/local.yml up -d
services:
memos:
image: neosmemo/memos:0.20.0
#command: '--driver mysql --dsn root:Kevin%0412%Mysql@tcp(10.10.13.233:3306)/memos-db'
volumes:
- data:/var/opt/memos
ports:
- '5230:5230'
container_name: memos
environment:
- MEMOS_DRIVER=postgres
- MEMOS_DSN=postgresql://postgres:Kevin0412PgSql@10.10.13.233:5432/memos-db?sslmode=disable
- TZ=Asia/Shanghai
volumes:
data:

View File

@@ -1,5 +1,5 @@
# path:: mkdir -pv /data/volumes/memos/data
# run:: docker compose -p memos --env-file ./memos/env.cfg -f ./memos/prod.stack.yml up -d
# run:: docker compose -p memos --env-file ./memos/env.cfg -f ./memos/prod.prod.stack.yml up -d
services:
memos: