-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose-puppet.yml
executable file
·52 lines (47 loc) · 1.26 KB
/
docker-compose-puppet.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
version: '2'
services:
puppet:
container_name: puppet
hostname: puppet
image: puppet/puppetserver
ports:
- 8140
volumes:
- ./code:/etc/puppetlabs/code/
- ./puppet/ssl:/etc/puppetlabs/puppet/ssl/
- ./puppet/serverdata:/opt/puppetlabs/server/data/puppetserver/
# In some cases unqualified hostnames can have the .local suffix
# added, I've seen this under Docker of Mac Beta for instance.
# Due to needing to access PuppetDB on same hostame as signed in the
# certificate you may need to uncommant the following lines
#environment:
# - PUPPETDB_SERVER_URLS=https://puppetdb.local:8081
#links:
# - puppetdb:puppetdb.local
puppetdb-postgres:
container_name: postgres
image: puppet/puppetdb-postgres
environment:
- POSTGRES_PASSWORD=puppetdb
- POSTGRES_USER=puppetdb
expose:
- 5432
volumes:
- ./puppetdb-postgres/data:/var/lib/postgresql/data/
puppetdb:
hostname: puppetdb
image: puppet/puppetdb
ports:
- 8080
- 8081
volumes:
- ./puppetdb/ssl:/etc/puppetlabs/puppet/ssl/
puppetboard:
image: puppet/puppetboard
ports:
- 8000
puppetexplorer:
image: puppet/puppetexplorer
ports:
- 80
read_only: true