What the Original CasaOS Post Provides
This 2023 community post is a short pointer to a PostgreSQL-on-CasaOS video tutorial rather than a complete written installation guide. Because container images and CasaOS app definitions change, use it as historical community context rather than a current authoritative configuration.
Use the Official PostgreSQL Container as the Baseline
The official PostgreSQL Docker image documents required environment variables, supported tags and persistent data behavior. Pin an intentional major version rather than blindly depending on an unspecified latest tag.
Persist the Database Outside the Container Layer
Map PostgreSQL's data directory to persistent storage and back it up independently of the container. PostgreSQL's backup documentation explains logical and filesystem-level backup approaches.
Moving the Same Idea to ZimaOS
If you are deploying today, review the ZimaOS App Store guide and ZimaOS storage guide. Keep database ports private unless remote database access is explicitly required and secured.
