https://github.com/xithrius/infra.xithrius.cloud
Infrastructure configuration for xithrius.cloud services
https://github.com/xithrius/infra.xithrius.cloud
Last synced: 11 months ago
JSON representation
Infrastructure configuration for xithrius.cloud services
- Host: GitHub
- URL: https://github.com/xithrius/infra.xithrius.cloud
- Owner: Xithrius
- Created: 2024-02-17T23:16:27.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-23T04:04:14.000Z (about 1 year ago)
- Last Synced: 2025-03-23T05:18:20.667Z (about 1 year ago)
- Language: Shell
- Size: 76.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# infra.xithrius.cloud
Infrastructure configuration for xithrius.cloud services
## PostgreSQL setup
1. Copy `.env.sample` to `.env`
Then place credentials into any key starting with `POSTGRES_`. These will be credentials for the elevated user.
2. Create database and user (optional)
If the database and/or user already exist, then they will not be modified.
Using the credentials you put into the `.env` file,
> [!IMPORTANT]
> Put a space before the command in your prompt if you don't want it to be recorded in bash history
Order of arguments: elevated username, new database name, new user's name, new user's password:
```bash
./scripts/postgres-user-database.sh elevated_user databasename asdf very_important_password
```
3. Make sure all is well by connecting to the database
```bash
docker exec -it infraxithriuscloud-postgres-1 psql -U auser -d databasename
```