{"result":{"depiction_url":null,"edges":{"references":{"objects":[{"created":"2020-05-30T05:47:54Z","object_id":{"id":1528,"is_a":["text","documentation","developerguide"],"name":"doc_developerguide_status_site","title":{"_type":"trans","tr":{"en":"Find the status site and your site&#39;s admin"}},"uri":"https:\/\/zotonic.com\/id\/1528"},"seq":1000000},{"created":"2020-05-30T05:47:54Z","object_id":{"id":1457,"is_a":["text","documentation","reference","module"],"name":"doc_module_mod_development","title":"mod_development","uri":"https:\/\/zotonic.com\/id\/1457"},"seq":1000000}],"predicate":{"id":332,"is_a":["meta","predicate"],"name":"references","title":{"_type":"trans","tr":{"en":"References"}},"uri":"https:\/\/zotonic.com\/id\/references"}},"refers":{"objects":[{"created":"2026-10-07T11:13:00Z","object_id":{"id":1526,"is_a":["text","documentation","developerguide"],"name":"doc_developerguide_getting_started","title":{"_type":"trans","tr":{"en":"Set up a local development environment"}},"uri":"https:\/\/zotonic.com\/id\/1526"},"seq":1000000},{"created":"2026-10-07T11:13:00Z","object_id":{"id":2914,"is_a":["text","documentation","developerguide"],"name":"developer_create_site","title":{"_type":"trans","tr":{"en":"Create your first site"}},"uri":"https:\/\/zotonic.com\/id\/2914"},"seq":1000000}],"predicate":{"id":2409,"is_a":["meta","predicate"],"name":"refers","title":{"_type":"trans","tr":{"en":"Refers"}},"uri":"https:\/\/zotonic.com\/id\/refers"}},"relation":{"objects":[{"created":"2026-10-07T11:13:46Z","object_id":{"id":2914,"is_a":["text","documentation","developerguide"],"name":"developer_create_site","title":{"_type":"trans","tr":{"en":"Create your first site"}},"uri":"https:\/\/zotonic.com\/id\/2914"},"seq":1},{"created":"2026-10-07T11:13:46Z","object_id":{"id":2915,"is_a":["text","documentation","developerguide"],"name":"developer_first_template_change","title":{"_type":"trans","tr":{"en":"Change a template and see the result"}},"uri":"https:\/\/zotonic.com\/id\/2915"},"seq":2},{"created":"2026-10-07T11:13:46Z","object_id":{"id":3044,"is_a":["text","documentation","developerguide"],"name":"developer_install_native","title":{"_type":"trans","tr":{"en":"Install on macOS or Linux"}},"uri":"https:\/\/zotonic.com\/id\/3044"},"seq":3}],"predicate":{"id":303,"is_a":["meta","predicate"],"name":"relation","title":{"_type":"trans","tr":{"nl":"Relatie","en":"Relation"}},"uri":"http:\/\/purl.org\/dc\/terms\/relation"}},"subject":{"objects":[{"created":"2026-10-07T11:13:47Z","object_id":{"id":2554,"is_a":["categorization","keyword","keyword_information_type"],"name":"zotonic_topic_how_to_guide","title":"How-to guide","uri":"https:\/\/zotonic.com\/id\/2554"},"seq":1},{"created":"2026-10-07T11:13:47Z","object_id":{"id":2564,"is_a":["categorization","keyword","keyword_audience"],"name":"zotonic_topic_backend_developer","title":"Backend developer","uri":"https:\/\/zotonic.com\/id\/2564"},"seq":2},{"created":"2026-10-07T11:13:47Z","object_id":{"id":2605,"is_a":["categorization","keyword","keyword_domain"],"name":"zotonic_topic_site_management","title":"Site management","uri":"https:\/\/zotonic.com\/id\/2605"},"seq":3},{"created":"2026-10-07T11:13:47Z","object_id":{"id":2603,"is_a":["categorization","keyword","keyword_domain"],"name":"zotonic_topic_configuration","title":"Configuration","uri":"https:\/\/zotonic.com\/id\/2603"},"seq":4},{"created":"2026-10-07T11:13:47Z","object_id":{"id":2670,"is_a":["categorization","keyword","keyword_technology"],"name":"zotonic_topic_erlang_otp","title":"Erlang\/OTP","uri":"https:\/\/zotonic.com\/id\/2670"},"seq":5}],"predicate":{"id":308,"is_a":["meta","predicate"],"name":"subject","title":{"_type":"trans","tr":{"en":"Keyword"}},"uri":"http:\/\/purl.org\/dc\/elements\/1.1\/subject"}}},"id":1411,"is_a":["text","documentation","developerguide"],"links":[{"rel":"self","target":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1411"},{"rel":"hub","target":"https:\/\/zotonic.com\/.zotonic\/websub"}],"medium":null,"medium_url":null,"name":"doc_developerguide_docker","page_url":{"en":"https:\/\/zotonic.com\/docs\/1411\/install-with-docker-or-podman","x-default":"https:\/\/zotonic.com\/docs\/1411\/install-with-docker-or-podman"},"preview_url":null,"resource":{"version":46,"pivot_location_lat":null,"title":{"_type":"trans","tr":{"en":"Install with Docker or Podman"}},"is_authoritative":true,"body":{"_type":"trans","tr":{"en":"<p>Use this route for a first try without installing Erlang or PostgreSQL on your computer. Start from the checkout created in <a href=\"\/id\/1526\">Set up a local development environment<\/a>.<\/p>\n<h2>1. Prepare the container runtime<\/h2>\n<p>Install <a href=\"https:\/\/docs.docker.com\/compose\/install\/\">Docker with Compose<\/a> and start it. Check in your computer&#39;s terminal:<\/p>\n<pre class=\"notranslate\"><code class=\"notranslate language-sh\">docker --version\ndocker compose version\n<\/code><\/pre>\n<p>If you already use Podman, install <code>podman-compose<\/code> as well and check <code>podman --version<\/code> and <code>podman-compose --version<\/code>. On macOS or Windows, start the runtime&#39;s Linux virtual machine before continuing. Windows users can work from a Linux checkout in WSL.<\/p>\n<h2>2. Build the development environment<\/h2>\n<p>From the Zotonic repository root, on your computer:<\/p>\n<pre class=\"notranslate\"><code class=\"notranslate language-sh\">.\/start-docker.sh\n<\/code><\/pre>\n<p>With Podman, use <code>.\/start-podman.sh<\/code> instead. The script starts PostgreSQL, builds the development image, and compiles Zotonic on the first run. Wait for the build to finish and the container&#39;s shell prompt to appear. Downloads and the first compilation can take several minutes.<\/p>\n<p>If host port 5432 is already used by a local database, run <code>DB_FORWARD_PORT=5433 .\/start-docker.sh<\/code> (or the Podman script). Zotonic still connects to <code>postgres:5432<\/code> inside the container network. Ports 8000 and 8443 must also be available on your computer.<\/p>\n<h2>3. Start Zotonic<\/h2>\n<p>Run these commands <strong>at the container shell prompt<\/strong>:<\/p>\n<pre class=\"notranslate\"><code class=\"notranslate language-sh\">bin\/zotonic start\nbin\/zotonic status\n<\/code><\/pre>\n<p>Expect a running node and the status site&#39;s state. Open <a href=\"https:\/\/localhost:8443\/\">the local status site<\/a> in your computer&#39;s browser. Zotonic generates a self-signed development certificate; the browser may ask you to accept it for this local address.<\/p>\n<p>The container already supplies the database connection. Do not run the native PostgreSQL setup or change its database host to <code>localhost<\/code>.<\/p>\n<h2>4. Create your first site<\/h2>\n<p>Keep this container shell open and continue with <a href=\"\/id\/2914\">Create your first site<\/a>. Edit the generated files with your normal editor on your computer: the checkout is mounted into the container.<\/p>\n<h2>Stop and return later<\/h2>\n<p>At the container shell, run <code>bin\/zotonic stop<\/code>, then <code>exit<\/code>. To stop the database container too, run <code>docker compose stop postgres<\/code> on your computer (or <code>podman-compose stop postgres<\/code>). Start the script again and run <code>bin\/zotonic start<\/code> when you return; your files and database remain.<\/p>\n<p>Site files live in <code>apps_user\/<\/code>, configuration and site files in <code>docker-data\/<\/code>, and PostgreSQL data in the Compose <code>pgdata<\/code> volume. Do not remove that volume to solve a routine startup error. This supplied setup uses development credentials and exposed ports; use it on a trusted development machine. Use the deployment guide when preparing a public server.<\/p>"}},"is_mailing_opt_out":false,"slug":"install-with-docker-or-podman","is_protected":false,"visible_for":0,"tz":"UTC","language":["en"],"is_featured":false,"content_group_id":{"id":339,"is_a":["meta","content_group"],"name":"default_content_group","title":{"_type":"trans","tr":{"en":"Default Content Group"}},"uri":"https:\/\/zotonic.com\/id\/default_content_group"},"category_id":{"id":317,"is_a":["meta","category"],"name":"developerguide","title":"Developer guide","uri":"https:\/\/zotonic.com\/id\/developerguide"},"publication_start":"2022-02-15T10:01:00Z","is_website_redirect":false,"github_url":"https:\/\/github.com\/zotonic\/zotonic\/tree\/master\/doc\/developer-guide\/docker.rst","pivot_location_lng":null,"name":"doc_developerguide_docker","is_unfindable":false,"is_published":true,"doc_editorial_edges":{"relation":[2914,2915,3044],"subject":[2554,2564,2603,2605,2670]},"summary":{"_type":"trans","tr":{"en":"Build and run Zotonic with its development containers, then create a site."}},"pivot_geocode":null,"custom_slug":false,"created":"2020-05-30T05:47:21Z","uri":null,"date_is_all_day":false,"is_dependent":false,"is_page_path_multiple":false,"translation_status":{"en":""},"publication_end":"9999-08-17T12:00:00Z","modifier_id":{"id":1,"is_a":["person"],"name":"administrator","title":"Site Administrator","uri":"https:\/\/zotonic.com\/id\/1"},"privacy":0,"doc_editorial_bundle":true,"creator_id":{"id":336,"is_a":["person","robot"],"name":"gitbot","title":"Git","uri":"https:\/\/zotonic.com\/id\/336"},"seo_noindex":false,"modified":"2026-10-07T11:13:58Z","title_slug":{"_type":"trans","tr":{"en":"install-with-docker-or-podman"}}},"uri":"https:\/\/zotonic.com\/id\/1411","uri_template":"https:\/\/zotonic.com\/id\/:id","websub":{"hub":"https:\/\/zotonic.com\/.zotonic\/websub","topic":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1411"}},"status":"ok"}