Skip to content

Instantly share code, notes, and snippets.

@stevewithington
Last active April 21, 2025 17:47
Show Gist options
  • Save stevewithington/7cd6aa41f2a873a9c362223d55cc9e27 to your computer and use it in GitHub Desktop.
Save stevewithington/7cd6aa41f2a873a9c362223d55cc9e27 to your computer and use it in GitHub Desktop.

Revisions

  1. stevewithington revised this gist Oct 5, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion docker-compose-drupal-postgres.yml
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    version: '3'
    version: '2'

    # Note: use the database service name `db` in the Host IP Address field ...
    # Or, `docker container inspect {postgrescontainerid}` to obtain the IP Address needed for completing the Drupal setup screen.
  2. stevewithington revised this gist Oct 5, 2017. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion docker-compose-drupal-postgres.yml
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,7 @@
    version: '3'

    # Note: `docker container inspect {postgrescontainerid}` to obtain the IP Address needed for completing the Drupal setup screen.
    # Note: use the database service name `db` in the Host IP Address field ...
    # Or, `docker container inspect {postgrescontainerid}` to obtain the IP Address needed for completing the Drupal setup screen.

    services:
    # Postgres
  3. stevewithington revised this gist Oct 5, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion docker-compose-drupal-postgres.yml
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    version: '3'

    # Notes: `docker container inspect {postgrescontainerid}` to obtain the IP Address needed for completing the Drupal setup screen.
    # Note: `docker container inspect {postgrescontainerid}` to obtain the IP Address needed for completing the Drupal setup screen.

    services:
    # Postgres
  4. stevewithington revised this gist Oct 5, 2017. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions docker-compose-drupal-postgres.yml
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,7 @@
    version: '3'

    # Notes: `docker container inspect {postgrescontainerid}` to obtain the IP Address needed for completing the Drupal setup screen.

    services:
    # Postgres
    db:
  5. stevewithington created this gist Oct 5, 2017.
    37 changes: 37 additions & 0 deletions docker-compose-drupal-postgres.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,37 @@
    version: '3'

    services:
    # Postgres
    db:
    image: postgres:9.6.5-alpine
    restart: always
    environment:
    POSTGRES_DB: drupaldb
    POSTGRES_USER: drupaluser
    POSTGRES_PASSWORD: drupalpassword
    volumes:
    - db_data:/var/lib/postgresql/data
    ports:
    - 5432:5432

    # Drupal
    cms:
    image: drupal:8.3.7-apache
    restart: always
    ports:
    - 8080:80
    volumes:
    - cms_modules:/var/www/html/modules
    - cms_profiles:/var/www/html/profiles
    - cms_themes:/var/www/html/themes
    - cms_sites:/var/www/html/sites
    depends_on:
    - db

    # Volumes
    volumes:
    db_data:
    cms_modules:
    cms_profiles:
    cms_themes:
    cms_sites: