Skip to content

Photon #16

Description

@Daniel-W-Innes

Move to local photon for dawarich in podman using https://hub.docker.com/r/rtuszik/photon-docker, e.g.,

_:

{
  users.groups.photon = {
    gid = 9011;
  };
  users.users.photon = {
    isSystemUser = true;
    group = "photon";
    uid = 9011;
  };

  systemd.tmpfiles.rules = [
    "d /var/lib/dawarich-photon/data 0755 photon photon -"
  ];

  virtualisation.oci-containers.containers = {
    dawarich-photon = {
      image = "rtuszik/photon-docker:latest";
      environment = {
        UPDATE_STRATEGY = "PARALLEL";
        ENABLE_METRICS = "true";
        REGION = "ca"; # TODO: This should be removed once there is more storage available for geodata.
      };
      ports = [
        "127.0.0.1:2322:2322/tcp"
      ];
      volumes = [
        "/var/lib/dawarich-photon/data:/photon/data"
      ];
    };
  };
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions