-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·100 lines (97 loc) · 9.62 KB
/
docker-compose.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
version: '3.7'
services:
puppet:
hostname: puppet
domainname: local
image: patchshorts/puppetserver
ports:
- "0.0.0.0:8140:8140"
environment:
- ENVIRONMENT=${ENVIRONMENT:-infrastructure}
# These are the defaults, they'll work for test boot but you need to changed them to your schema.
#
# - PUPPETSERVER_HOSTNAME=${PUPPETSERVER_HOSTNAME:-puppet}
# DNS_ALT_NAMES must be set before starting the stack the first time,
# and must list all the names under which the puppetserver can be
# reached. Add other names as a comma-separated list
# - CA_ALLOW_SUBJECT_ALT_NAMES=${CA_ALLOW_SUBECT_ALT_NAMES:-true}
# - DNS_ALT_NAMES=${DNS_ALT_NAMES:-puppet.local}
# - ANALYTICS_ENABLED=${ANALYTICS_ENABLED:-false}
- PUPPETDB_HOSTNAME=${PUPPETDB_HOSTNAME:-puppetdb.local}
- PUPPETDB_SERVER_URLS=https://${PUPPETDB_HOSTNAME:-puppetdb.local}:8081
# - HIERA_BASE64=${HIERA_BASE64:-}
# - EYAML_PUBLIC_BASE64=${EYAML_PUBLIC_BASE64:-LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUMyVENDQWNHZ0F3SUJBZ0lCQVRBTkJna3Foa2lHOXcwQkFRVUZBREFBTUNBWERUSXdNRFV4TmpBM01UWXkKTUZvWUR6SXdOekF3TlRBME1EY3hOakl3V2pBQU1JSUJJakFOQmdrcWhraUc5dzBCQVFFRkFBT0NBUThBTUlJQgpDZ0tDQVFFQTFIUUVTN2x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FpPWGd5RzJGZ2E5UXIySnhnL3VaOEdaNFVnWHBFMkFmNy9KemQwSDUrY1F4cTMKTXBRVDRMa09EOXVMQkVRT3Y1dkxiMFVPV3JWNmVaSzRaS0lxZTlyTFBMQlU1K3N5V2NUZWxxUEZGRWJaNlZFcApjd0N3WVZqNW1QTm5wMkpaNUpSSG84NGZxVHg2MHFZYTJqSmFETFFNbmI4NEQxZFY1bGFoQ1E9PQotLS0tLUVORCBSU0EgUFJJVkFURSBLRVktLS0tLQo=}
# - SERVER_FACTS_BASE64=${SERVER_FACTS_BASE64:-IyEvYmluL3NoCmVjaG8gImN1c3RvbWVyPWludGVybmFsIgplY2hvICJhcHA9aW5mcmFzdHJ1Y3R1cmUiCmVjaG8gInN0YWdlPWluZnJhc3RydWN0dXJlIgplY2hvICJoaWVyYV92ZXJzaW9uPSJgL3Vzci9iaW4vZW52IGhpZXJhIC1WIDI+JjEgfCBncmVwIC12IElnbm9yaW5nIHwgYXdrIC1GLiAne3ByaW50ICQxfSdgCg==}
# - ENVIRONMENT=${ENVIRONMENT:-infrastructure}
volumes:
- puppetserver-code:/etc/puppetlabs/code/
- puppetserver-config:/etc/puppetlabs/puppet/
- puppetserver-data:/opt/puppetlabs/server/data/puppetserver/
depends_on:
- webhook
links:
- puppetdb:puppetdb.local
postgres:
image: postgres:9.6
hostname: postgres
domainname: local
environment:
# These are required, but you can also change them.
- POSTGRES_PASSWORD=puppetdb
- POSTGRES_USER=puppetdb
- POSTGRES_DB=puppetdb
healthcheck:
# existence check for puppetdb database
test: [ 'CMD-SHELL', "psql --username=puppetdb puppetdb -c ''" ]
interval: 10s
timeout: 5s
retries: 6
start_period: 2m
expose:
- 5432
volumes:
- puppetdb-postgres:/var/lib/postgresql/data
puppetdb:
hostname: puppetdb
domainname: local
image: patchshorts/puppetdb
environment:
- ENVIRONMENT=${ENVIRONMENT:-infrastructure}
# These are the defaults, they'll work for test boot but you need to changed them to your schema.
#
# - ANALYTICS_ENABLED=${ANALYTICS_ENABLED:-false}
# This name is an FQDN so the short name puppet doesn't collide outside compose network
# - PUPPETSERVER_HOSTNAME=${PUPPETSERVER_HOSTNAME:-puppet}
# - PUPPETDB_POSTGRES_HOSTNAME=${PUPPETDB_POSTGRES_HOSTNAME:-postgres}
# - PUPPETDB_PASSWORD=${PUPPETDB_PASSWORD:-puppetdb}
# - PUPPETDB_USER=${PUPPETDB_USER:-puppetdb}
# - DNS_ALT_NAMES=${DNS_ALT_NAMES:-puppetdb.local}
# - CERTNAME=${PUPPETDB_CERTNAME:-puppetdb}
ports:
- "0.0.0.0:8080:8080"
- "0.0.0.0:8081:8081"
depends_on:
- postgres
volumes:
- puppetdb:/opt/puppetlabs/server/data/puppetdb/
webhook:
hostname: webhook
domainname: local
image: patchshorts/webhook
environment:
- ENVIRONMENT=${ENVIRONMENT:-infrastructure}
# These are already the defaults, you will need to change them, these are insecure keys everyone can see and this is only a sample control repo. These keys are only used to test boot this biotch.
# - R10K_CONTROL_REPO=${R10K_CONTROL_REPO:-ssh://[email protected]/puppet-control/sample-control.git}
# - R10K_HIERA_REPO=${R10K_HIERA_REPO:-}
# - R10K_DEPLOY_KEY_BASE64=${R10K_DEPLOY_KEY_BASE64:-LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQpNSUlFcFFJQkFBS0NBUUVBNmw3Vi9GS05mU0pUUHNWY3RpRXJ1RmFvTnNqN1ZNS1hxTmlreDhPaVRIZ1ErVmlBCkhSdVlJUGZnNHE1SHIvNVRrYjZmYW54Y2p0RFVjWGdWT0Q0WE83NE9ZWWhBYlVIWXU5N1hqdkJkcEJXS2R4cmoKcWJDdUlpbzhFN3N0aFgyWno1ZXFybDZoV0tOcjNqQVVTRlFKdlF6amcxR3JEWENHenVucjFWYjhqbUg0RkZYTgo2UURUQXBOdWNSclhUaEw1YWlSQVRMQ295My9ES3k5OUllVE9vdk9JL0ltY29GK0ZacjNqa2VFR3ZzN3gvNTFiCmJuaXl3WTltUnpLNHoveTlaanRnWEp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nA1eElOUEdjVUNnWUVBdUdNZzVvblRBZ1lzVHk1dDkwa0EKVWNPLzl0TmZ3aVF5RDdYVk55R0ZTODI0NmZCTWpMc21hdW1kOGd5eU5EWmJsNHA3MEwzQmNMbVo0eWR3OWJPUwpIemZyUFNJOS9ncENCVm8wMHk1VGQrajZTcGVxZHIrKzZ6dUFUY0l5QTJNK3lVdVhYNXNZbDFsTnVlU1hGOXBjCmZJc0xRcHJIRkJINW5wVitlM01iZFBFQ2dZRUF0UzRaQXJqaWYzVDA1YTZlVm1GSVJzdmdFZ3FKSGVvM016S1QKaGplUkdwTGJJLzRZYWE1YWRZS0hZR3g1OHM4bHo5VlhOYjB6QTN0b1ZHZUNwcmt1emFRU0NIc3IrUHMxUldLOApYWldDWnNPMG1jVVlXeE5ab0VLcHpEUW5sWmxyN2RrUHFWYVFQUk5JaFlyVWNiQ3hvUER1L0tQR3BWMmQzUFk2Ck9IdWxVd0VDZ1lFQTFDOTQzZDh2d0MwTytzWEsyMVVQeTZuWXNXdVNuYlNyKzNQSE84WkVRVjh2QnRleFplMDYKS3dxZFg3WWt4RlJFVlVmUURiTlczRWJ0UGlNRVRzMWw4djBUTkFxbm9McmQ1aUJpRk1CQkNNWDZYT0x0aXZNawpRbmV2Z29ER0FoYjVwNFczRWR6ckkwcVRwaGx0YlNWK0tVYjhpM0NXUldmNG8yRitUV1pXSkJRPQotLS0tLUVORCBSU0EgUFJJVkFURSBLRVktLS0tLQo=}
ports:
- "0.0.0.0:8088:8088"
volumes:
- puppetserver-code:/etc/puppetlabs/code/
volumes:
puppetserver-code:
puppetserver-config:
puppetserver-data:
puppetdb:
puppetdb-postgres: