mirror of
https://github.com/miniflux/v2.git
synced 2025-10-10 19:32:06 +00:00
feat: multi db support
This commit is contained in:
parent
10b2b36895
commit
fe6c000897
25 changed files with 2612 additions and 1433 deletions
37
docker-compose.yml
Normal file
37
docker-compose.yml
Normal file
|
@ -0,0 +1,37 @@
|
|||
services:
|
||||
postgresql:
|
||||
image: postgres:17.6
|
||||
volumes:
|
||||
- postgres-data:/var/lib/postgresql/data
|
||||
ports:
|
||||
- 5432:5432
|
||||
environment:
|
||||
POSTGRES_DB: miniflux2
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: postgres
|
||||
healthcheck:
|
||||
test: ["CMD", "pg_isready -d miniflux2 -U postgres"]
|
||||
timeout: 30s
|
||||
interval: 5s
|
||||
|
||||
cockroachdb:
|
||||
image: cockroachdb/cockroach:v23.2.28
|
||||
command: start-single-node --insecure
|
||||
volumes:
|
||||
- cockroach-data:/cockroach/cockroach-data
|
||||
environment:
|
||||
COCKROACH_DATABASE: miniflux2
|
||||
COCKROACH_USER: postgres
|
||||
ports:
|
||||
- "26257:26257"
|
||||
- "26258:8080"
|
||||
healthcheck:
|
||||
test: ["CMD", "cockroach", "sql", "--insecure", "--host=localhost:26257", "-e", "select 1"]
|
||||
timeout: 30s
|
||||
interval: 5s
|
||||
|
||||
volumes:
|
||||
postgres-data:
|
||||
driver: local
|
||||
cockroach-data:
|
||||
driver: local
|
Loading…
Add table
Add a link
Reference in a new issue