postgres
This commit is contained in:
parent
00381909b5
commit
f055006b3b
38
templates/drupal/1/docker-compose.yml
Normal file
38
templates/drupal/1/docker-compose.yml
Normal file
@ -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"]
|
37
templates/drupal/1/rancher-compose.yml
Normal file
37
templates/drupal/1/rancher-compose.yml
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user