A template overlay (templates/postgres) adds DEPENDS="postgresql", DB_* settings with a random password, an install that creates the user and database on the Core's PostgreSQL (safe to re-run), an uninstall that drops them, and a Python example that counts visits. Tested with a throwaway app: deploy, redeploy and a reboot of the Core keep the data, remove drops the database and user. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
10 lines
207 B
Plaintext
10 lines
207 B
Plaintext
NAME="{{TITLE}}"
|
|
DESCRIPTION="{{TITLE}}, made with coreapp-dev"
|
|
DOCS=
|
|
CONTAINER=coreapp/{{NAME}}
|
|
VERSION=0.1.0
|
|
INTERNAL_IP={{IP}}
|
|
DEPENDS="postgresql"
|
|
PORTS=8080
|
|
MONITOR="https://{{NAME}}.@DOMAIN@|http_2xx"
|