Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/solarnetwork/solarnetwork-postgres-docker
A Docker configuration for a Postgres database instance configured for SolarNetwork development.
https://github.com/solarnetwork/solarnetwork-postgres-docker
dockerfile postgresql solarnetwork
Last synced: about 1 month ago
JSON representation
A Docker configuration for a Postgres database instance configured for SolarNetwork development.
- Host: GitHub
- URL: https://github.com/solarnetwork/solarnetwork-postgres-docker
- Owner: SolarNetwork
- License: apache-2.0
- Created: 2024-06-22T02:11:08.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-09-06T23:07:46.000Z (4 months ago)
- Last Synced: 2024-09-08T01:40:52.492Z (4 months ago)
- Topics: dockerfile, postgresql, solarnetwork
- Language: Dockerfile
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SolarNetwork Developer Postgres Database Docker
This project contains a Docker configuration for a Postgres database instance
configured for SolarNetwork development. The container will be initialized with
two databases, owned by two database users:| Owner | Password | Database |
| :---------- | :---------- | :---------------------- |
| `solarnet` | `solarnet` | `solarnetwork` |
| `solartest` | `solartest` | `solarnetwork_unittest` |The database administrative user is `postgres` with password `postgres`.
# Building
You can use `make` with the following targets:
| Target | Description |
| :-------- | :--------------------------------------------------- |
| `build` | Create the Docker image |
| `rebuild` | Create the Docker image, ignoring any cached layers. |
| `run` | Launch the container |
| `start` | Start a previously stopped container |
| `stop` | Stop a launched container |
| `remove` | Remove the container. |# Customize the Postgres port
By default Postgres will be listening on port `5432`. You can customize that
by passing `PORT=X` to the `run` target, like```sh
make run PORT=1234
```# Multi-platform build
You can use the `BUILD_OPTS` parameter to build a [multi-platform image][mp], like
```sh
make build BUILD_OPTS="--platform linux/amd64,linux/arm64"
```[mp]: https://docs.docker.com/build/building/multi-platform/