mirror of
https://github.com/firewalkwithm3/stacks.git
synced 2025-07-02 10:57:48 +08:00
first commit
This commit is contained in:
commit
149e02a10d
72 changed files with 3442 additions and 0 deletions
3
memos/README.md
Normal file
3
memos/README.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Compose file for Memos
|
||||
## Environment Variables
|
||||
- POSTGRES_PASSWORD - database password
|
43
memos/compose.yaml
Normal file
43
memos/compose.yaml
Normal file
|
@ -0,0 +1,43 @@
|
|||
services:
|
||||
memos:
|
||||
image: neosmemo/memos:stable
|
||||
container_name: memos
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- default
|
||||
- proxy
|
||||
depends_on:
|
||||
- memos_db
|
||||
volumes:
|
||||
- memos_data:/var/opt/memos
|
||||
environment:
|
||||
- MEMOS_DRIVER=postgres
|
||||
- MEMOS_DSN=user=memos password=${POSTGRES_PASSWORD} dbname=memosdb host=memos_db sslmode=disable
|
||||
labels:
|
||||
caddy: memos.ferngarden.net
|
||||
caddy.import: internal
|
||||
caddy.reverse_proxy: "{{upstreams 5230}}"
|
||||
|
||||
memos_db:
|
||||
image: postgres:16.1
|
||||
container_name: memos_db
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- default
|
||||
volumes:
|
||||
- memos_db:/var/lib/postgresql/data/
|
||||
environment:
|
||||
- POSTGRES_USER=memos
|
||||
- POSTGRES_DB=memosdb
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||
|
||||
networks:
|
||||
default:
|
||||
proxy:
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
memos_db:
|
||||
name: memos_db
|
||||
memos_data:
|
||||
name: memos_data
|
Loading…
Add table
Add a link
Reference in a new issue