diff --git a/templates/drupal/1/docker-compose.yml b/templates/drupal/1/docker-compose.yml new file mode 100644 index 0000000..f65bf88 --- /dev/null +++ b/templates/drupal/1/docker-compose.yml @@ -0,0 +1,38 @@ +version: '2' + +services: + + drupal: + image: drupal:8.2-apache + labels: + io.rancher.sidekicks: postgres,drupal-datavolume + io.rancher.container.pull_image: always + ports: + - ${public_port}:80 + links: + - postgres:postgres + volumes_from: + - drupal-datavolume + restart: always + + postgres: + labels: + io.rancher.sidekicks: drupal-datavolume + io.rancher.container.pull_image: always + image: postgres:9.6 + environment: + POSTGRES_USER: ${DB_USER} + POSTGRES_PASSWORD: ${DB_PASS} + POSTGRES_DB: ${DB_NAME} + volumes_from: + - drupal-datavolume + restart: always + + drupal-datavolume: + image: "busybox" + volumes: + - /var/www/drupal + - /var/lib/postgresql + labels: + io.rancher.container.start_once: true + entrypoint: ["/bin/true"] diff --git a/templates/drupal/1/rancher-compose.yml b/templates/drupal/1/rancher-compose.yml new file mode 100644 index 0000000..de7e83e --- /dev/null +++ b/templates/drupal/1/rancher-compose.yml @@ -0,0 +1,37 @@ +.catalog: + name: "Drupal" + version: "v0.1-postgres" + description: "Blog tool, publishing platform and CMS" + uuid: Drupal-0 + minimum_rancher_version: v0.51.0 + questions: + - variable: public_port + description: "public port to access the drupal site" + label: "Public Port" + required: true + default: "15080" + type: "int" + + - variable: "DB_NAME" + description: "Database Name to use for the server" + label: "DB Name" + required: true + default: "drupal" + type: "string" + + - variable: "DB_USER" + description: "Database User to use for the server" + label: "DB User" + required: true + default: "drupal" + type: "string" + + - variable: "DB_PASS" + description: "Database Password to use for the server" + label: "DB Password" + required: true + default: "" + type: "password" + +drupal: + retain_ip: true