{"id":26984306,"url":"https://github.com/friendsofshopware/shopware-demo-environment","last_synced_at":"2025-04-03T17:36:10.486Z","repository":{"id":221035753,"uuid":"753267376","full_name":"FriendsOfShopware/shopware-demo-environment","owner":"FriendsOfShopware","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-16T20:34:53.000Z","size":59,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-17T02:04:40.080Z","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/FriendsOfShopware.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}},"created_at":"2024-02-05T19:38:09.000Z","updated_at":"2024-09-16T20:34:57.000Z","dependencies_parsed_at":"2024-02-11T13:42:10.295Z","dependency_job_id":"35791426-b873-4bd2-8f46-8707103b0851","html_url":"https://github.com/FriendsOfShopware/shopware-demo-environment","commit_stats":null,"previous_names":["friendsofshopware/shopware-demo-environment"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FriendsOfShopware%2Fshopware-demo-environment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FriendsOfShopware%2Fshopware-demo-environment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FriendsOfShopware%2Fshopware-demo-environment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FriendsOfShopware%2Fshopware-demo-environment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FriendsOfShopware","download_url":"https://codeload.github.com/FriendsOfShopware/shopware-demo-environment/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247050030,"owners_count":20875362,"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":"2025-04-03T17:36:09.836Z","updated_at":"2025-04-03T17:36:10.466Z","avatar_url":"https://github.com/FriendsOfShopware.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shopware Demo Environment\n\nThis repository contains a Docker image to run a Shopware 6 environment. It is based on the official Shopware 6 Docker image and adds some demo data to the database.\n\n## Usage\n\nTo start the Shopware 6 environment, run the following command:\n\n```bash\ndocker run \\\n    --rm \\\n    # External reachable URL, aka sales channel URL in shopware\n    -e APP_URL=http://localhost:8000 \\\n    -p 8000:8000 \\\n    ghcr.io/friendsofshopware/shopware-demo-environment:6.5.8\n```\n\n[See here for all available images](https://github.com/FriendsOfShopware/shopware-demo-environment/pkgs/container/shopware-demo-environment/versions?filters%5Bversion_type%5D=tagged)\n\nYou can additionally set `SHOPWARE_ADMIN_PASSWORD` to set a different admin password.\n\nTo install Shopware 6 extensions you will need to set the `EXTENSIONS` environment variable. This variable should be a space separated list of composer packages. For example:\n\n```bash\ndocker run \\\n    --rm \\\n    -e APP_URL=http://localhost:8000 \\\n    -e EXTENSIONS=\"frosh/tools\" \\\n    -p 8000:8000 \\\n    ghcr.io/friendsofshopware/shopware-demo-environment:6.5.8\n```\n\nFor Shopware Store plugins, you need to pass the `SHOPWARE_PACKAGIST_TOKEN` environment variable generated from a Wildcard environment.\n\nExample:\n\n```bash\ndocker run \\\n    --rm \\\n    -e APP_URL=http://localhost:8000 \\\n    -e EXTENSIONS=\"store.shopware.com/froshtools store.shopware.com/froshplatformsharebasket\" \\\n    -e SHOPWARE_PACKAGIST_TOKEN=your-token \\\n    -p 8000:8000 \\\n    ghcr.io/friendsofshopware/shopware-demo-environment:6.5.8\n```\n\n## Running multiple containers\n\nIf you want to run multiple containers, you should deploy a Traefik before the containers. This will allow you to access the containers via different subdomains.\n\nSee as an example the `compose.yml` file\n\n## Custom Fixtures\n\nYou can inject a `fixture.php` to `/var/www/html` to run custom commands on the Shopware DI container to populate the database with custom data.\n\nExample:\n\n```bash\ndocker run \\\n    --rm \\\n    -e APP_URL=http://localhost:8000 \\\n    -e EXTENSIONS=\"frosh/tools\" \\\n    -v $(pwd)/fixture.php:/var/www/html/fixture.php \\\n    -p 8000:8000 \\\n    ghcr.io/friendsofshopware/shopware-demo-environment:6.5.8\n```\n\n```php\n\u003c?php\n\n$kernel = require '/opt/shopware/boot.php';\n\nvar_dump($kernel-\u003egetContainer()-\u003eget('product.repository')-\u003egetDefinition()-\u003egetEntityName());\n```\n\nThis script is executed at any container start, so you can use it to populate the database with custom data. All DI services are available in this script.\n\n## Thanks to Namespace.so\n\nThanks to [namespace.so](https://namespace.so) for sponsoring their fast Docker builder with multi arch support. Checkout [namespace.so](https://namespace.so) if you need better GitHub runners or Docker remote builders.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffriendsofshopware%2Fshopware-demo-environment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffriendsofshopware%2Fshopware-demo-environment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffriendsofshopware%2Fshopware-demo-environment/lists"}