Sign inSign up

codingjoe/the-box-web:0.0.5

Manifest digest

sha256:e5bf59d143fad096b1887fce77ed05ad917efb738f177108a6c35b0c40046df1

Last pushed

7 months by codingjoe

Type

Compose

Manifest digest

sha256:e5bf59d143fad096b1887fce77ed05ad917efb738f177108a6c35b0c40046df1

Compose file content

name: containers
networks:
  app:
    driver: bridge
    internal: true
    name: containers_app
  app-wan:
    driver: bridge
    name: containers_app-wan
  caddy:
    external: true
    name: caddy
services:
  web:
    deploy:
      mode: replicated
      replicas: 2
      resources:
        limits:
          cpus: "0.25"
          memory: 512M
    environment:
      PORT: ${PORT:-8000}
    image: traefik/whoami:latest
    labels:
      caddy: ${HOSTNAME:-localhost}
      caddy.reverse_proxy: '{{upstreams ${PORT:-8000}}}'
      caddy.reverse_proxy.health_headers.X-Forwarded-Host: ${HOSTNAME:-localhost}
      caddy.reverse_proxy.health_headers.X-Forwarded-Proto: https
      caddy.reverse_proxy.health_uri: /
      caddy.reverse_proxy.lb_policy: round_robin
    memswap_limit: 1g
    networks:
      app: null
      app-wan: null
      caddy: null
    stop_grace_period: 1m

Docker commands

docker compose -f oci://codingjoe/the-box-web:0.0.5 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