feat(infra): compose profiles, Makefile, local override example

All services sit behind profiles (db, gateway, obsidian) selected via
COMPOSE_PROFILES in .env; Makefile with the usual verbs and a `deploy`
target that pushes main:stable.
This commit is contained in:
hh
2026-08-27 23:21:31 +02:00
parent 967cc82ee6
commit 6410efbe03
5 changed files with 45 additions and 0 deletions
+3
View File
@@ -4,6 +4,7 @@ x-restart: &restart
services:
postgres:
image: postgres:16-alpine
profiles: [db]
<<: *restart
env_file: .env
volumes:
@@ -21,6 +22,7 @@ services:
build:
context: .
dockerfile: obsidian.Dockerfile
profiles: [obsidian]
<<: *restart
volumes:
- vault:/vault
@@ -31,6 +33,7 @@ services:
container_name: beaver-gateway
build:
context: https://git.kotikot.com/beaver/beaver-gateway.git#${GATEWAY_REF:-main}
profiles: [gateway]
<<: *restart
depends_on:
postgres: