sha256:ebc2e3ac4f30852886e9f34afae6633a32e7524405b552340e9440055c81432c
Last pushed
7 months by codingjoe
Type
Compose
Manifest digest
sha256:ebc2e3ac4f30852886e9f34afae6633a32e7524405b552340e9440055c81432c
name: containers
networks:
app:
internal: true
name: containers_app
app-wan:
name: containers_app-wan
caddy:
external: true
name: caddy
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_started
required: true
deploy:
mode: replicated
replicas: 2
resources:
limits:
cpus: "2"
memory: 512M
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
update_config:
delay: 1m
failure_action: rollback
monitor: 1m
order: start-first
parallelism: 1
environment:
- HOSTNAME=${HOSTNAME:-localhost}
- PORT=${PORT:-8000}
- DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgres/postgres
image: traefik/whoami:latest
labels:
- caddy=${HOSTNAME:-localhost}
- caddy.reverse_proxy={{upstreams ${PORT:-8000}}}
- caddy.reverse_proxy.lb_policy=round_robin
- caddy.reverse_proxy.health_uri=/
- caddy.reverse_proxy.health_headers.X-Forwarded-Host=${HOSTNAME:-localhost}
- caddy.reverse_proxy.health_headers.X-Forwarded-Proto=https
- caddy.cache
networks:
app: null
app-wan: null
caddy: null
stop_grace_period: 1m
volumes:
postgres:
name: containers_postgres
docker compose -f oci://codingjoe/the-box-postgres:latest upUse the above command to pull and run the Compose file. Learn more.
Tiny Go webserver that prints OS information and HTTP request to output
Pulls
10M+
Stars
72
Last Updated
about 2 months
Unmodified Postgres with some useful plugins.
Pulls
10M+
Stars
78
Last Updated
3 days