forked from puppetlabs/pupperware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (41 loc) · 1.15 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
version: '2'
services:
puppet:
hostname: puppet
image: puppet/puppetserver
ports:
- 8140:8140
environment:
# 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. 'puppet' must be one of them, otherwise puppetdb won't be
# able to get a cert. Add other names as a comma-separated list
- DNS_ALT_NAMES
- PUPPETDB_SERVER_URLS=https://puppetdb:8081
volumes:
- ./code:/etc/puppetlabs/code/
- ./puppet:/etc/puppetlabs/puppet/
- ./serverdata:/opt/puppetlabs/server/data/puppetserver/
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
environment:
- PUPPETDB_PASSWORD=puppetdb
- PUPPETDB_USER=puppetdb
ports:
- 8080
- 8081
depends_on:
- postgres
- puppet
volumes:
- ./puppetdb/ssl:/etc/puppetlabs/puppet/ssl/