chore: remove temporary note graph patch from deploy workflow
This commit is contained in:
@@ -71,113 +71,3 @@ jobs:
|
|||||||
|
|
||||||
# 3. Docker Container neustarten
|
# 3. Docker Container neustarten
|
||||||
docker compose up -d --build
|
docker compose up -d --build
|
||||||
|
|
||||||
# --- TEMPORARY PATCH FOR NOTEGRAPH & ORGMYLIFE ---
|
|
||||||
echo "Patching NoteGraph and OrgMyLife Limits..."
|
|
||||||
|
|
||||||
if [ -d "/opt/NoteGraph" ]; then
|
|
||||||
cat << 'EOF' > /opt/NoteGraph/docker-compose.yml
|
|
||||||
services:
|
|
||||||
silverbullet:
|
|
||||||
image: zefhemel/silverbullet:latest
|
|
||||||
restart: unless-stopped
|
|
||||||
deploy:
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
memory: 256M
|
|
||||||
environment:
|
|
||||||
SB_USER: "${SB_USER:-admin:changeme}"
|
|
||||||
volumes:
|
|
||||||
- ./notes:/space
|
|
||||||
ports:
|
|
||||||
- "3000:3000"
|
|
||||||
|
|
||||||
git-sync:
|
|
||||||
image: alpine/git:latest
|
|
||||||
restart: unless-stopped
|
|
||||||
deploy:
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
memory: 64M
|
|
||||||
volumes:
|
|
||||||
- ./notes:/space
|
|
||||||
- ./.git:/repo-git:ro
|
|
||||||
entrypoint: /bin/sh
|
|
||||||
command: |
|
|
||||||
-c '
|
|
||||||
cd /space
|
|
||||||
git init 2>/dev/null || true
|
|
||||||
while true; do
|
|
||||||
sleep 300
|
|
||||||
cd /space
|
|
||||||
git add -A
|
|
||||||
if ! git diff --cached --quiet 2>/dev/null; then
|
|
||||||
git commit -m "auto: sync notes"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
'
|
|
||||||
|
|
||||||
ingestion:
|
|
||||||
image: notegraph-ingestion
|
|
||||||
build:
|
|
||||||
context: ./ingestion
|
|
||||||
restart: unless-stopped
|
|
||||||
deploy:
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
memory: 256M
|
|
||||||
ports:
|
|
||||||
- "8001:8001"
|
|
||||||
volumes:
|
|
||||||
- ./notes:/app/notes
|
|
||||||
- ./ingestion/inbox:/app/inbox
|
|
||||||
env_file:
|
|
||||||
- .env
|
|
||||||
EOF
|
|
||||||
cd /opt/NoteGraph && docker compose up -d
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -d "/opt/OrgMyLife" ]; then
|
|
||||||
cat << 'EOF' > /opt/OrgMyLife/docker-compose.yml
|
|
||||||
version: "3.8"
|
|
||||||
services:
|
|
||||||
db:
|
|
||||||
image: postgres:16-alpine
|
|
||||||
restart: unless-stopped
|
|
||||||
command: postgres -c shared_buffers=32MB -c max_connections=20
|
|
||||||
deploy:
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
memory: 256M
|
|
||||||
environment:
|
|
||||||
POSTGRES_DB: orgmylife
|
|
||||||
POSTGRES_USER: orgmylife
|
|
||||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-changeme}
|
|
||||||
volumes:
|
|
||||||
- pgdata:/var/lib/postgresql/data
|
|
||||||
ports:
|
|
||||||
- "5432:5432"
|
|
||||||
|
|
||||||
app:
|
|
||||||
build: .
|
|
||||||
restart: unless-stopped
|
|
||||||
deploy:
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
memory: 256M
|
|
||||||
depends_on:
|
|
||||||
- db
|
|
||||||
ports:
|
|
||||||
- "8000:8000"
|
|
||||||
env_file:
|
|
||||||
- .env
|
|
||||||
volumes:
|
|
||||||
- ./BACKLOG.md:/app/BACKLOG.md:ro
|
|
||||||
command: >
|
|
||||||
sh -c "python -c 'from app.db.session import engine, Base; from app.models import *; Base.metadata.create_all(bind=engine)' &&
|
|
||||||
uvicorn app.main:app --host 0.0.0.0 --port 8000"
|
|
||||||
volumes:
|
|
||||||
pgdata:
|
|
||||||
EOF
|
|
||||||
cd /opt/OrgMyLife && docker compose up -d
|
|
||||||
fi
|
|
||||||
|
|||||||
Reference in New Issue
Block a user