Sign inSign up

codingjoe/the-box-postgres:0.0.4

Manifest digest

sha256:da23dd96deccba0f6a560a42ca0da298b6e8b5528ea9ff54a5fbf0650868f6d5

Last pushed

7 months by codingjoe

Type

Compose

Manifest digest

sha256:da23dd96deccba0f6a560a42ca0da298b6e8b5528ea9ff54a5fbf0650868f6d5

Compose file content

name: containers
networks:
  app:
    external: true
    name: app
  default:
    name: containers_default
  wan:
    external: true
    name: wan
services:
  postgres:
    environment:
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
    healthcheck:
      interval: 10s
      retries: 5
      start_period: 30s
      test:
        - CMD-SHELL
        - pg_isready -U postgres -d postgres
      timeout: 10s
    image: supabase/postgres:17.5.1.070-orioledb
    networks:
      app: null
    restart: unless-stopped
    volumes:
      - source: postgres
        target: /var/lib/postgresql/data
        type: volume
        volume: {}
  web:
    depends_on:
      postgres:
        condition: service_healthy
        required: true
        restart: true
    deploy:
      mode: replicated
      replicas: 2
      resources:
        limits:
          cpus: "0.25"
          memory: 512M
    environment:
      DATABASE_URL: postgresql://postgres:${POSTGRES_PASSWORD}@postgres/postgres
    image: traefik/whoami:latest
    memswap_limit: 1g
    networks:
      default: null
volumes:
  postgres:
    name: containers_postgres

Docker commands

docker compose -f oci://codingjoe/the-box-postgres:0.0.4 up

Use the above command to pull and run the Compose file. Learn more.

Images used

Image

Tiny Go webserver that prints OS information and HTTP request to output


Pulls

10M+

Stars

72

Last Updated

about 2 months

Image

Unmodified Postgres with some useful plugins.


Pulls

10M+

Stars

78

Last Updated

3 days