<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.nixos.org/w/index.php?action=history&amp;feed=atom&amp;title=Craft_CMS</id>
	<title>Craft CMS - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.nixos.org/w/index.php?action=history&amp;feed=atom&amp;title=Craft_CMS"/>
	<link rel="alternate" type="text/html" href="https://wiki.nixos.org/w/index.php?title=Craft_CMS&amp;action=history"/>
	<updated>2026-05-10T06:46:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.0</generator>
	<entry>
		<id>https://wiki.nixos.org/w/index.php?title=Craft_CMS&amp;diff=13560&amp;oldid=prev</id>
		<title>Denperidge: Added {{expansion}}</title>
		<link rel="alternate" type="text/html" href="https://wiki.nixos.org/w/index.php?title=Craft_CMS&amp;diff=13560&amp;oldid=prev"/>
		<updated>2024-06-26T09:32:15Z</updated>

		<summary type="html">&lt;p&gt;Added {{expansion}}&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:32, 26 June 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{expansion}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;There is (as of writing) no built-in service for Craft CMS. However, this can be built around with Docker! The following instructions are &amp;#039;&amp;#039;&amp;#039;based on&amp;#039;&amp;#039;&amp;#039; the [https://craftcms.com/knowledge-base/docker-for-local-development Docker instructions on the Craft CMS website] and experimentation.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;There is (as of writing) no built-in service for Craft CMS. However, this can be built around with Docker! The following instructions are &amp;#039;&amp;#039;&amp;#039;based on&amp;#039;&amp;#039;&amp;#039; the [https://craftcms.com/knowledge-base/docker-for-local-development Docker instructions on the Craft CMS website] and experimentation.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mediawiki:diff:1.41:old-13264:rev-13560:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Denperidge</name></author>
	</entry>
	<entry>
		<id>https://wiki.nixos.org/w/index.php?title=Craft_CMS&amp;diff=13264&amp;oldid=prev</id>
		<title>Klinger: Category:Applications Category:Web Applications</title>
		<link rel="alternate" type="text/html" href="https://wiki.nixos.org/w/index.php?title=Craft_CMS&amp;diff=13264&amp;oldid=prev"/>
		<updated>2024-06-20T14:41:10Z</updated>

		<summary type="html">&lt;p&gt;&lt;a href=&quot;/wiki/Category:Applications&quot; title=&quot;Category:Applications&quot;&gt;Category:Applications&lt;/a&gt; &lt;a href=&quot;/wiki/Category:Web_Applications&quot; title=&quot;Category:Web Applications&quot;&gt;Category:Web Applications&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:41, 20 June 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l75&quot;&gt;Line 75:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 75:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Expose 127.0.0.1:4004 so it can be reached by other devices, and navigate to &amp;#039;&amp;#039;&amp;#039;example.com/index.php?p=admin/install&amp;#039;&amp;#039;&amp;#039; (replacing example.com with your domain or ip:port)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Expose 127.0.0.1:4004 so it can be reached by other devices, and navigate to &amp;#039;&amp;#039;&amp;#039;example.com/index.php?p=admin/install&amp;#039;&amp;#039;&amp;#039; (replacing example.com with your domain or ip:port)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Applications]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Web Applications]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mediawiki:diff:1.41:old-13254:rev-13264:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Klinger</name></author>
	</entry>
	<entry>
		<id>https://wiki.nixos.org/w/index.php?title=Craft_CMS&amp;diff=13254&amp;oldid=prev</id>
		<title>Denperidge: Initial Commit: Setup through Docker</title>
		<link rel="alternate" type="text/html" href="https://wiki.nixos.org/w/index.php?title=Craft_CMS&amp;diff=13254&amp;oldid=prev"/>
		<updated>2024-06-20T12:57:34Z</updated>

		<summary type="html">&lt;p&gt;Initial Commit: Setup through Docker&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;There is (as of writing) no built-in service for Craft CMS. However, this can be built around with Docker! The following instructions are &amp;#039;&amp;#039;&amp;#039;based on&amp;#039;&amp;#039;&amp;#039; the [https://craftcms.com/knowledge-base/docker-for-local-development Docker instructions on the Craft CMS website] and experimentation.&lt;br /&gt;
&lt;br /&gt;
== Setup through Docker ==&lt;br /&gt;
&lt;br /&gt;
# Install Craft CMS&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# From https://craftcms.com/knowledge-base/docker-for-local-development&lt;br /&gt;
&lt;br /&gt;
# Create and move into a new directory:&lt;br /&gt;
mkdir craft-docker&lt;br /&gt;
cd craft-docker&lt;br /&gt;
&lt;br /&gt;
# Bootstrap a new Craft installation with Composer:&lt;br /&gt;
docker run \&lt;br /&gt;
  --rm \&lt;br /&gt;
  --volume $PWD:/app \&lt;br /&gt;
  composer \&lt;br /&gt;
  composer create-project craftcms/craft . --ignore-platform-reqs&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
# Create docker-compose.yml&amp;lt;syntaxhighlight lang=&amp;quot;yaml&amp;quot;&amp;gt;&lt;br /&gt;
# /home/username/craftcms/docker-compose.yml&lt;br /&gt;
services:&lt;br /&gt;
  web:&lt;br /&gt;
    image: docker.io/craftcms/nginx:8.2&lt;br /&gt;
    ports:&lt;br /&gt;
      - &amp;quot;4004:8080&amp;quot;&lt;br /&gt;
    volumes:&lt;br /&gt;
      - /home/username/craft-docker/:/app  # Craft CMS installation&lt;br /&gt;
    environment:&lt;br /&gt;
      - CRAFT_DB_DRIVER=pgsql&lt;br /&gt;
      - CRAFT_DB_SERVER=db&lt;br /&gt;
      - CRAFT_DB_PORT=5432&lt;br /&gt;
      - CRAFT_DB_DATABASE=db&lt;br /&gt;
      - CRAFT_DB_USER=db&lt;br /&gt;
      - CRAFT_DB_PASSWORD=RANDOM&lt;br /&gt;
      - CRAFT_DB_SCHEMA=public&lt;br /&gt;
      - CRAFT_DB_TABLE_PREFIX=&lt;br /&gt;
    &lt;br /&gt;
    depends_on:&lt;br /&gt;
      db:&lt;br /&gt;
        condition: service_healthy&lt;br /&gt;
  &lt;br /&gt;
  db:&lt;br /&gt;
    image: docker.io/postgres:13-alpine&lt;br /&gt;
    expose:&lt;br /&gt;
      - 5432&lt;br /&gt;
    healthcheck:&lt;br /&gt;
      test: [&amp;quot;CMD&amp;quot;, &amp;quot;pg_isready&amp;quot;, &amp;quot;-U&amp;quot;, &amp;quot;db&amp;quot;, &amp;quot;-d&amp;quot;, &amp;quot;db&amp;quot;]&lt;br /&gt;
      interval: 5s&lt;br /&gt;
      retries: 3&lt;br /&gt;
    environment:&lt;br /&gt;
      POSTGRES_DB: db&lt;br /&gt;
      POSTGRES_USER: db&lt;br /&gt;
      POSTGRES_PASSWORD: RANDOM&lt;br /&gt;
    volumes:&lt;br /&gt;
      - db_data:/var/lib/postgresql/data&lt;br /&gt;
&lt;br /&gt;
volumes:&lt;br /&gt;
  db_data:&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
# Modify your NixOS setup along the following lines:&amp;lt;syntaxhighlight lang=&amp;quot;nixos&amp;quot;&amp;gt;&lt;br /&gt;
# /etc/nixos/configuration.nix&lt;br /&gt;
{ config, pkgs, ... }:&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
  virtualisation.docker.enable = true;&lt;br /&gt;
&lt;br /&gt;
  systemd.services.craftcms = {&lt;br /&gt;
    script = &amp;quot;${pkgs.docker-compose}/bin/docker-compose up --force-recreate&amp;quot;;&lt;br /&gt;
    serviceConfig.WorkingDirectory = &amp;quot;/home/username/craftcms/&amp;quot;;  # Point to directory with docker-compose.yml&lt;br /&gt;
    # path = with pkgs; [ docker ];  # Uncomment in case docker executable is not found&lt;br /&gt;
    wantedBy = [&amp;quot;multi-user.target&amp;quot;];&lt;br /&gt;
    after = [&amp;quot;docker.service&amp;quot; &amp;quot;docker.socket&amp;quot;];&lt;br /&gt;
  };&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
# Expose 127.0.0.1:4004 so it can be reached by other devices, and navigate to &amp;#039;&amp;#039;&amp;#039;example.com/index.php?p=admin/install&amp;#039;&amp;#039;&amp;#039; (replacing example.com with your domain or ip:port)&lt;/div&gt;</summary>
		<author><name>Denperidge</name></author>
	</entry>
</feed>