{"id":20149314,"url":"https://github.com/forceu/partkeepr_docker","last_synced_at":"2025-07-09T07:06:47.350Z","repository":{"id":55926445,"uuid":"315420607","full_name":"Forceu/partkeepr_docker","owner":"Forceu","description":"Docker / Podman image for PartKeepr","archived":false,"fork":false,"pushed_at":"2022-06-17T11:33:02.000Z","size":52,"stargazers_count":9,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-09T07:03:38.977Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Forceu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-23T19:34:00.000Z","updated_at":"2025-01-18T07:27:44.000Z","dependencies_parsed_at":"2022-08-15T09:40:13.479Z","dependency_job_id":null,"html_url":"https://github.com/Forceu/partkeepr_docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Forceu/partkeepr_docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Forceu%2Fpartkeepr_docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Forceu%2Fpartkeepr_docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Forceu%2Fpartkeepr_docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Forceu%2Fpartkeepr_docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Forceu","download_url":"https://codeload.github.com/Forceu/partkeepr_docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Forceu%2Fpartkeepr_docker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264411146,"owners_count":23603802,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T22:42:47.525Z","updated_at":"2025-07-09T07:06:47.314Z","avatar_url":"https://github.com/Forceu.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker / Podman Image for PartKeepr\n\nThis is an up-to-date docker / podman image containing [PartKeepr](https://partkeepr.org/).\n\n#### Architectures\n\nThe architectures supported by this image are:\n\n| Architecture | Tag |\n| :----: | --- |\n| x86-64 | latest |\n| arm64 | arm64v8-latest |\n| armhf | arm32v7-latest |\n| all* | multiarch-latest |\n\n\\* experimental\n\n## Installation\n\nSwitch to the directory for installation and create the folders `db`, `data` and `config`.\n\nPull the the image with `docker pull f0rc3/partkeepr:latest`. Alternatively you can build it yourself with the command `docker build -t partkeepr:latest .`\n\n### Setup\n\n#### Migrating data\n\nIf you already have existing data, from the old installation copy the folder `/data/` to the new folder `data` and `/app/config` to the new folder `config`. Export your old MySql table as an .sql file and save it as \"database.sql\" to the same folder.\n\n#### Podman\n\nIf you are using Podman, execute the following commands:\n\n```\npodman pod create -p 127.0.0.1:7155:80 --name partkeepr-pod \npodman run --pod partkeepr-pod --name partkeepr-mariadb -v ./db:/var/lib/mysql -e MYSQL_RANDOM_ROOT_PASSWORD=yes -e MYSQL_DATABASE=partkeepr -e MYSQL_USER=partkeepr -e MYSQL_PASSWORD=partkeepr -d mariadb:10.0\npodman run -d --name partkeepr-web --pod partkeepr-pod -v ./data:/app/data/ -v ./config:/app/app/config -d f0rc3/partkeepr:latest\npodman exec -it partkeepr-web sh\n```\nIf you need to access the server from a different device, replace the `podman pod create -p 127.0.0.1:7155:80` part with `podman pod create -p 7155:80`. Please note that this is insecure, as the traffic is not encrypted!\n\n#### Docker\n\nIf you are using Docker, execute the following commands (change the folder paths first):\n\n```\ndocker run -p 127.0.0.1:3310:3306 --name partkeepr-mariadb -v /path/to/your/folder/db:/var/lib/mysql -e MYSQL_RANDOM_ROOT_PASSWORD=yes -e MYSQL_DATABASE=partkeepr -e MYSQL_USER=partkeepr -e MYSQL_PASSWORD=partkeepr -d mariadb:10.0\ndocker run -d -p 127.0.0.1:7155:80 --name partkeepr-web -v /path/to/your/folder/data:/app/data/ -v /path/to/your/folder/config:/app/app/config -d f0rc3/partkeepr:latest\ndocker exec -it partkeepr-web sh\n```\nIf you need to access the server from a different device, replace the `docker run -p 127.0.0.1:7155:80` part with `docker run -p 7155:80`. Please note that this is insecure, as the traffic is not encrypted!\n\n### Container setup\n\nYou are now in the root shell of the container. Execute the following commands:\n\n```\nchown www-data:www-data -R /app/app/config\nchown www-data:www-data -R /app/data\n```\n\nGo to `http://127.0.0.1:7155/setup` and follow the setup. *Caution:* There seems to be a problem with the setup with the latest Chrome browser. If you are unable to proceed to the first setup page, try Firefox. When asked for the auth key, execute the following command in the container shell:\n\n```\ncat /app/app/authkey.php\n```\n\nYou can now exit the shell. If you are migrating your old data, make sure to import your old data before you connect to the MySql server in the setup. To import execute\n\n```\ndocker exec -i partkeepr-mariadb mysql -upartkeepr -ppartkeepr partkeepr \u003c database.sql\n```\n\nIn the MySql setup, enter the IP of the MySql server. If you are using podman, you need to enter `127.0.0.1` instead of `localhost`!\nIf you are using the default setup with docker, you need to select port 3010 instead of 3006 and point to the IP of the database container.\n\nIf you are running the image on slow hardware and the setup cannot finish the step \"Warming up cache\", run the following:\n\n`docker exec -it partkeepr-web php /app/app/console cache:warmup`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforceu%2Fpartkeepr_docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fforceu%2Fpartkeepr_docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforceu%2Fpartkeepr_docker/lists"}