# One-command quick start: the gateway and its web console on one port. # # curl -fsSL https://raw.githubusercontent.com/dickyj-grc/Amoeba/main/docker-compose.quickstart.yml \ # | docker compose -p amoeba -f - up -d # # Then open http://localhost:8080 and sign in as `admin`. The password is in # the log (`docker logs amoeba 2>&1 | grep password`) and in the data volume # (`docker exec amoeba cat /etc/amoeba/admin-password`). # # State (signing secret, users, service catalog) lives in the `amoeba-data` # volume. For HTTPS on a public domain, use docker-compose.public.yml (same # container and volume, so you can switch to it later). # # The image follows the 0.1 release line; set AMOEBA_VERSION (e.g. 0.1.8) on # the `docker compose` side of the pipe to pin an exact release. services: amoeba: image: ghcr.io/dickyj-grc/amoeba:${AMOEBA_VERSION:-0.1} container_name: amoeba restart: unless-stopped # SIGTERM lets open requests finish (AMOEBA_DRAIN_SECONDS, 25 s) before # Docker kills the process; app containers keep running across upgrades. stop_grace_period: 30s healthcheck: test: ["CMD", "wget", "-qO-", "http://127.0.0.1:8080/healthz"] interval: 30s timeout: 5s start_period: 10s retries: 3 environment: # First run: generate a signing secret, an admin user and an empty # catalog in /etc/amoeba. Existing state is never changed. - AMOEBA_BOOTSTRAP=1 # Each app gets a network shared only with this container, which joins it. - AMOEBA_SELF_CONTAINER=amoeba - RUST_LOG=info ports: - "8080:8080" volumes: - amoeba-data:/etc/amoeba # Amoeba starts and stops your apps as sibling containers. - /var/run/docker.sock:/var/run/docker.sock networks: - amoeba-net networks: # Apps join this network by name, so it must not get a project prefix. amoeba-net: name: amoeba-net volumes: amoeba-data: