add ferretdb

This commit is contained in:
2025-05-31 12:41:37 -07:00
parent 5cf33759c3
commit 5c0ed779d7
2 changed files with 49 additions and 72 deletions

View File

@ -24,6 +24,55 @@ repo = "komodo/demo"
resource_path = "resources.toml"
delete = true
####################
# FerretDB (Stack) #
####################
[[stack]]
name = "ferretdb"
[stack.config]
server = "demo-server"
destroy_before_deploy = true
file_contents = """
services:
postgres:
# Recommended: Pin to a specific version
# https://github.com/FerretDB/documentdb/pkgs/container/postgres-documentdb
image: ghcr.io/ferretdb/postgres-documentdb
restart: unless-stopped
expose:
- 5432
volumes:
- data:/var/lib/postgresql/data
environment:
POSTGRES_USER: [[FERRETDB_USERNAME]]
POSTGRES_PASSWORD: [[FERRETDB_PASSWORD]]
POSTGRES_DB: postgres
ferretdb:
# Recommended: Pin to a specific version
# https://github.com/FerretDB/FerretDB/pkgs/container/ferretdb
image: ghcr.io/ferretdb/ferretdb
restart: unless-stopped
depends_on:
- postgres
ports:
- 27017:27017
volumes:
- state:/state
environment:
FERRETDB_POSTGRESQL_URL: postgres://[[FERRETDB_USERNAME]]:[[FERRETDB_PASSWORD]]@postgres:5432/postgres
networks:
default:
name: ferretdb
volumes:
data:
state:
"""
##################
# Immich (Stack) #
##################