This repository has been archived by the owner on Sep 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
/
bosh-postgreql.yml
74 lines (69 loc) · 1.72 KB
/
bosh-postgreql.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
---
name: postgresql
instance_groups:
- name: docker
azs: [z1]
instances: 1
persistent_disk: 65536
vm_type: default
stemcell: default
networks: [{name: default}]
jobs:
- name: docker
release: docker
properties:
tcp_address: 0.0.0.0
tls_cacert: "((docker-tls.ca))"
tls_cert: "((docker-tls.certificate))"
tls_key: "((docker-tls.private_key))"
- name: containers
release: docker
properties:
containers:
- name: postgresql
image: "frodenas/postgresql"
tag: "9.6"
# tag: ((postgresql-image-tag))
# uncomment, and pass -v postgresql-image-tag=3.2
# OR, include -o bosh-op-select-tag.yml
bind_ports: ["5432:5432"]
bind_volumes: [/data]
env_vars:
- "POSTGRES_USERNAME=((postgresql-username))"
- "POSTGRES_PASSWORD=((postgresql-password))"
- "POSTGRES_DBNAME=((postgresql-dbname))"
- "POSTGRES_EXTENSIONS="
variables:
- name: docker-ca
type: certificate
options:
is_ca: true
common_name: dockerCA
- name: docker-tls
type: certificate
options:
ca: docker-ca
common_name: docker
extended_key_usage:
- client_auth
- name: postgresql-username
type: password
- name: postgresql-password
type: password
- name: postgresql-dbname
type: password
stemcells:
- alias: default
os: ubuntu-trusty
version: latest
update:
canaries: 0
canary_watch_time: 1000-60000
update_watch_time: 1000-60000
max_in_flight: 32
serial: false
releases:
- name: docker
version: 30.0.0
url: https://github.com/cloudfoundry-community/docker-boshrelease/releases/download/v30.0.0/docker-30.0.0.tgz
sha1: d0936ebf27b2d7950fcc9042720b6fd28bcb631b