# A Cambium server. Put this file in a folder of its own, such as /opt/cambium, then in that folder: # # docker compose up -d start it # docker compose logs cambium the setup code, for its first admin # docker compose exec cambium cambium-server fingerprint the fingerprint, for the team to compare # docker compose pull && docker compose up -d patch releases of 0.5 # # The next line (a new minor version) means changing the tag below, and every desktop app updates with it. # Settings go in cambium.env beside this file, one CAMBIUM_=value per line; it's optional, and after a change # run `docker compose up -d --force-recreate`. Docker Compose 2.24 or later. services: cambium: image: cambiumvcs.com/cambium-server:0.5 restart: unless-stopped ports: - "8666:8666" env_file: - path: ./cambium.env required: false volumes: # Docker volumes, which the image's own user (10001) owns from the start. They outlive the container: removing # it, or the image, and starting again in this folder brings the server back as it was, fingerprint and all. - data:/data - backup:/backup # Longer than the server's own shutdown deadline; raise both together. stop_grace_period: 30s # One line per request adds up on a server nobody watches. logging: driver: json-file options: max-size: "10m" max-file: "5" volumes: data: backup: