Skip to content

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

License

Notifications You must be signed in to change notification settings

SolarNetwork/solarnetwork-postgres-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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:

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

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

License

Stars

Watchers

Forks

Packages

No packages published