{"id":19176627,"url":"https://github.com/sulu/sulu-docker","last_synced_at":"2026-06-20T16:30:17.077Z","repository":{"id":48308899,"uuid":"110212944","full_name":"sulu/sulu-docker","owner":"sulu","description":"Development environment for the Sulu content management platform based on docker-compose","archived":false,"fork":false,"pushed_at":"2022-07-21T23:39:50.000Z","size":84,"stargazers_count":27,"open_issues_count":6,"forks_count":17,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-01-04T02:26:34.163Z","etag":null,"topics":["docker-environment","sulu"],"latest_commit_sha":null,"homepage":"https://sulu.io","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sulu.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":"2017-11-10T06:48:16.000Z","updated_at":"2024-06-07T06:30:02.000Z","dependencies_parsed_at":"2022-09-20T13:15:43.659Z","dependency_job_id":null,"html_url":"https://github.com/sulu/sulu-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sulu%2Fsulu-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sulu%2Fsulu-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sulu%2Fsulu-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sulu%2Fsulu-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sulu","download_url":"https://codeload.github.com/sulu/sulu-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240254288,"owners_count":19772392,"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":["docker-environment","sulu"],"created_at":"2024-11-09T10:29:20.175Z","updated_at":"2026-06-20T16:30:17.016Z","avatar_url":"https://github.com/sulu.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sulu-Docker\n\n**Development environment** for the [Sulu](https://sulu.io/) content management platform built with \n[Docker Compose](https://docs.docker.com/compose/).\n\n\u003e Docker is a great tool for trying new technologies effortlessly. Unfortunately, there are still significant\n\u003e [filesystem performance issues](https://github.com/docker/for-mac/issues/1592) when using bind mounts on some \n\u003e systems. \n\u003e\n\u003e If you are experiencing bad performance, we recommend to use dockerized services (MySQL, Elasticsearch) in\n\u003e combination with the [Symfony Local Web Server](https://symfony.com/doc/current/setup/symfony_server.html).\n\u003e For example, the [Sulu Demo repository](https://github.com/sulu/sulu-demo) includes such a setup.\n\n## URLs\n\n* Sulu-Website: `PROJECT_DOMAIN:PORT_NGINX` (default: `sulu.localhost:18080`)\n* Sulu-Admin: `PROJECT_DOMAIN:PORT_NGINX/admin` (default: `sulu.localhost:18080/admin`)\n* MySQL: `PROJECT_DOMAIN:PORT_MYSQL` (default: `sulu.localhost:13306`)\n* Elasticsearch: `PROJECT_DOMAIN:PORT_ELASTICSEARCH` (default: `sulu.localhost:19200`)\n\n## Install Environment\n\n```bash\ngit clone https://github.com/sulu/sulu-docker \u0026\u0026 cd sulu-docker\n```\n\nThe `.env` file contains several environment variables that are used to throughout the environment. \nThis allows to configure the project path, database settings, public ports of the services and the domain name.\n\nTo access your project via the configured domain, you need to add it to your `/etc/hosts` file:\n\n```\n127.0.0.1    sulu.localhost (value of your PROJECT_DOMAIN)\n```\n\n## Startup Containers\n\n```bash\ndocker-compose up\n```\n\nYou can also startup the containers in the background by executing:\n\n```bash\ndocker-compose start\n```\n\n## Create Sulu Project\n\n```bash\n# Start bash inside of the php container\ndocker-compose exec php bash\n\n# Create a new sulu project with composer\ncomposer create-project sulu/skeleton /var/www/html\n\n# Set service urls to the `.env.local` file\necho \"DATABASE_URL=mysql://$MYSQL_USER:$MYSQL_PASSWORD@mysql:3306/$MYSQL_DATABASE\" \u003e\u003e .env.local\necho \"ELASTICSEARCH_HOST=elasticsearch:9200\" \u003e\u003e .env.local\n\n# Initialize sulu project\nbin/adminconsole sulu:build dev --destroy\n```\n\nAfter completing these steps the services are accessible via the URLs listed above.\n\n## Update Container Configuration\n\nWhen changing configuration inside of the `docker` folder, the environment must be rebuilt and restarted:\n\n```bash\ndocker-compose down\ndocker-compose build\ndocker-compose up\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsulu%2Fsulu-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsulu%2Fsulu-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsulu%2Fsulu-docker/lists"}