{"id":30769434,"url":"https://github.com/piwigo/piwigo-docker","last_synced_at":"2026-02-12T13:33:53.209Z","repository":{"id":307305127,"uuid":"1029029514","full_name":"Piwigo/piwigo-docker","owner":"Piwigo","description":null,"archived":false,"fork":false,"pushed_at":"2025-09-04T10:26:26.000Z","size":8811,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-04T10:34:11.987Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Piwigo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-30T12:18:39.000Z","updated_at":"2025-09-04T08:40:02.000Z","dependencies_parsed_at":"2025-09-04T10:16:29.611Z","dependency_job_id":null,"html_url":"https://github.com/Piwigo/piwigo-docker","commit_stats":null,"previous_names":["piwigo/piwigo-docker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Piwigo/piwigo-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piwigo%2Fpiwigo-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piwigo%2Fpiwigo-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piwigo%2Fpiwigo-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piwigo%2Fpiwigo-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Piwigo","download_url":"https://codeload.github.com/Piwigo/piwigo-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piwigo%2Fpiwigo-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273685014,"owners_count":25149719,"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","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-09-04T22:35:24.131Z","updated_at":"2026-02-12T13:33:53.204Z","avatar_url":"https://github.com/Piwigo.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Piwigo docker\n\nAn alpine based container to easily deploy piwigo !\n\n## Usage\n\n### Starting the container\n\nCreate a folder named `Piwigo` and copy `compose.yaml` from this repository, then create a `.env` file\n\n```\nPiwigo\n├── .env\n└── compose.yaml\n```\n\nEdit the `.env` and add a password after `db_user_password=` (you can generate a strong password [**here**](https://bitwarden.com/password-generator/)). Change the exposed port if you need to. And you can also set a timezone.\n\n```conf\ndb_user_password=\npiwigo_port=8080\ntimezone=Europe/Paris\n```\n\nStart the container with `docker compose up -d`\n\n### Configuring your reverse proxy\n\nSetup your reverse proxy to have a domain/subdomain or subpath point to the container. The following examples are for nginx :\n\n```conf\nserver {\n\tlisten 80;\n\tserver_name my_domain.tld;\n\tlocation / {\n\t\tproxy_pass http://127.0.0.1:8080/;\n\t\tproxy_set_header Host $host;\n\t\tproxy_set_header X-Real-IP $remote_addr;\n\t\tproxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n\t\tproxy_set_header X-Forwarded-Proto $scheme;\n\t}\n}\n```\n\nIf you intend to host piwigo on a subpath (ex: `my_domain.tld/gallery`) add `proxy_set_header X-Forwarded-Prefix /my_subpath` at the end of the location section;\n\n```conf\n\tlisten 80;\n\tserver_name my_domain.tld;\n\tlocation /gallery/ {\n\t\tproxy_pass http://127.0.0.1:8080/;\n\t\tproxy_set_header Host $host;\n\t\tproxy_set_header X-Real-IP $remote_addr;\n\t\tproxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n\t\tproxy_set_header X-Forwarded-Proto $scheme;\n\t\tproxy_set_header X-Forwarded-Prefix /gallery;\n    }\n```\n\n### Installing piwigo \n\nFill out the database form using the following values :\n```\nDatabase configuration:\n\tHost:\t\t\tpiwigo-db:3306\n\tUser:\t\t\tpiwigodb_user\n\tPassword:\t\t#Password in .env\n\tDatabase name:\t\tpiwigodb\n```\n\nCreate an admin account and your piwigo is installed !\n\n### Making backups\n\nGo to the folder where your `compose.yaml` is, stop the container using `docker compose down` and use rsync to backup `./piwigo-data/`\n\n```sh\n# --delete-before will remove your older backup !\nrsync -r --delete-before ./piwigo-data/ ./piwigo-data.bck/ \n```\n\n### Updating the container\n\n**Making a backup is always advised before updating**  \n\nGo to the folder where your `compose.yaml` is and stop the container. Then pull the new version of the container with `docker compose pull` and restart it with `docker compose up -d`\n\nUpdating piwigo via the web interface does not replace container updates !\n\n## Advanced options\n\nIf you prefer using a `mysql` container instead of `mariadb` edit `compose.yaml` and replace mariadb by mysql (be aware it is case sensitive).\n\nIf you want to use an existing MySQL/MariaDB database you already setup, use `compose-nodb.yaml` and rename it `compose.yaml`.\nYou can either create `.env` with `piwigo_port=` or manually edit the compose file to change the exposed port.\n\nCreate a script at `./piwigo-data/scripts/user.sh` to run commands before nginx and php start.  \neg: to install extra dependencies like pandoc `apk add --no-cache pandoc`, available packages are listed at [alpine pkg index](https://pkgs.alpinelinux.org/packages).  \n**Note that the script is run as root**.\n\n## Container Architeture\n\nTwo containers :\n- Alpine nginx with php-fpm\n- MariaDB\n\nPHP modules are installed with alpine natives packages, php-fpm is running with the same user as nginx.\n\nContainer network trafic is internal in the `piwigo-network` bridge.\n\nAll persistent data is stored in `./piwigo-data/` :\n\n- `piwigo` piwigo files, when a new version is released, new files will be copied over\n- `mysql` database files from the mariaDB/mysql\n- `scripts` allow user to sideload dependencies and other files outside of piwigo\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiwigo%2Fpiwigo-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiwigo%2Fpiwigo-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiwigo%2Fpiwigo-docker/lists"}