Skip to content

Latest commit

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

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:

OwnerPasswordDatabase
solarnetsolarnetsolarnetwork
solartestsolartestsolarnetwork_unittest

The database administrative user is postgres with password postgres.

Building

You can use make with the following targets:

TargetDescription
buildCreate the Docker image
rebuildCreate the Docker image, ignoring any cached layers.
runLaunch the container
startStart a previously stopped container
stopStop a launched container
removeRemove 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

make run PORT=1234

Multi-platform build

You can use the BUILD_OPTS parameter to build a multi-platform image, like

make build BUILD_OPTS="--platform linux/amd64,linux/arm64"

About

A Docker configuration for a Postgres database instance configured for SolarNetwork development.

Topics

Resources

Stars

0 stars

Watchers

3 watching

Forks

Packages

Contributors

Languages