Sign inSign up

codingjoe/the-box-web:0.0.7

Manifest digest

sha256:569698ddb950e5dbfeaee7e633b3e8dec1edcc0e530a9cc3c0ce43f265f48511

Last pushed

7 months by codingjoe

Type

Compose

Manifest digest

sha256:569698ddb950e5dbfeaee7e633b3e8dec1edcc0e530a9cc3c0ce43f265f48511

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: "2"
          memory: 512M
    environment:
      HOSTNAME: ${HOSTNAME:-localhost}
      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.7 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