Docker container for running the Structs Postgres Database.
Docker Hub: https://hub.docker.com/r/structs/structs-pg/
In the distant future the species of the galaxy are embroiled in a race for Alpha Matter, the rare and dangerous substance that fuels galactic civilization. Players take command of Structs, a race of sentient machines, and must forge alliances, conquer enemies and expand their influence to control Alpha Matter and the fate of the galaxy.
git clone [email protected]:playstructs/docker-structs-pg.git
cd docker-structs-pg
docker build .
The following will run the latest Structs postgres database server.
docker run -d --rm -p 5432:5432 --name=structs_pg structs/structs-pg:latest
A good way to run for development and for continual monitoring is to attach to the terminal:
docker run -it --rm -p 5432:5432 --name=structs_pg structs/structs-pg:latest
This image provides a persistent volume for /var/lib/postgresql
if desired. If you wish to maintain the volume after the container is destroyed don't tell Docker to remove it with --rm
. You can also override it:
docker run -d -p 5432:5432 -v /some/persistent/path:/var/lib/postgresql --name=structs_pg structs/structs-pg:latest
Administering the database must be done from within the container. After starting the container you can perform the following to attach to its terminal and access the database:
docker ps
[note container id of the structs container]
docker exec -it [container id] /bin/bash
su structs -c "psql structs"
The primary configuration is handled in conf/sqitch.conf
. Update this file prior to building to alter deployment.
Copyright 2021 Slow Ninja Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.