mirror of
https://github.com/casjaysdevdocker/postgres
synced 2026-06-23 20:01:00 -04:00
2872d885ef7b0c2567c6482f640e251a4df9ef46
Update the embedded entrypoint copies in rootfs/ to match the upstream template change. Internal state files renamed to dotfiles so they're not matched by `/run/*.pid` cleanup globs: - /run/init.d/entrypoint.pid -> /run/.entrypoint.pid - /run/no_exit.pid -> /run/.no_exit.pid - /run/backup.pid -> /run/.backup.pid - /run/__start_init_scripts.pid -> /run/.start_init_scripts.pid Per-service PIDs in /run/init.d/ are unchanged. rootfs/usr/local/bin/entrypoint.sh rootfs/usr/local/etc/docker/functions/entrypoint.sh rootfs/usr/local/share/template-files/config/env/default.sample rootfs/usr/local/share/template-files/config/env/examples/zz-entrypoint.sh
👋 Welcome to postgres 🚀
postgres README
Install my system scripts
sudo bash -c "$(curl -q -LSsf "https://github.com/systemmgr/installer/raw/main/install.sh")"
sudo systemmgr --config && sudo systemmgr install scripts
Automatic install/update
dockermgr update postgres
Install and run container
mkdir -p "$HOME/.local/share/srv/docker/postgres/volumes"
git clone "https://github.com/dockermgr/postgres" "$HOME/.local/share/CasjaysDev/dockermgr/postgres"
cp -Rfva "$HOME/.local/share/CasjaysDev/dockermgr/postgres/rootfs/." "$HOME/.local/share/srv/docker/postgres/volumes/"
docker run -d \
--restart always \
--privileged \
--name casjaysdevdocker-postgres \
--hostname postgres \
-e TZ=${TIMEZONE:-America/New_York} \
-v "$HOME/.local/share/srv/docker/casjaysdevdocker-postgres/volumes/data:/data:z" \
-v "$HOME/.local/share/srv/docker/casjaysdevdocker-postgres/volumes/config:/config:z" \
-p 80:80 \
casjaysdevdocker/postgres:latest
via docker-compose
version: "2"
services:
ProjectName:
image: casjaysdevdocker/postgres
container_name: casjaysdevdocker-postgres
environment:
- TZ=America/New_York
- HOSTNAME=postgres
volumes:
- "$HOME/.local/share/srv/docker/casjaysdevdocker-postgres/volumes/data:/data:z"
- "$HOME/.local/share/srv/docker/casjaysdevdocker-postgres/volumes/config:/config:z"
ports:
- 80:80
restart: always
Get source files
dockermgr download src casjaysdevdocker/postgres
OR
git clone "https://github.com/casjaysdevdocker/postgres" "$HOME/Projects/github/casjaysdevdocker/postgres"
Build container
cd "$HOME/Projects/github/casjaysdevdocker/postgres"
buildx
Authors
Description
Languages
Shell
90.6%
Dockerfile
9.4%