Sign inSign up

chiavegatto/postgres-pgagent

By chiavegatto

•Updated almost 4 years ago

This image is based on postgres image.

Image
3

50K+

chiavegatto/postgres-pgagent repository overview

⁠Example how to use:
version: '3.2'
services:

  postgres:
    image: postgres
    ports:
      - 5432:5432
    environment:
      - POSTGRES_DB=test
      - POSTGRES_PASSWORD=123456
    volumes:
      - db-data:/var/lib/postgresql/data

  pgagent:
    image: chiavegatto/postgres-pgagent
    entrypoint: /bin/sh -c
                "/tmp/wait-for-it.sh postgres:5432 --timeout=30 &&
                PGPASSWORD='123456' psql -U postgres -h postgres -p 5432 -d test -c 'CREATE EXTENSION IF NOT EXISTS pgagent;' &&
                PGPASSWORD='123456' pgagent -f hostaddr=postgres dbname=test user=postgres port=5432"
    environment:
      - TIMEZONE=America/Manaus

Tag summary

Content type

Image

Digest

Size

108.6 MB

Last updated

over 8 years ago

docker pull chiavegatto/postgres-pgagent