-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (41 loc) · 877 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (41 loc) · 877 Bytes
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
version: '3'
services:
puppet:
hostname: puppet.local
image: puppet:db
privileged: true
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- ./root:/root
- ./production:/etc/puppetlabs/code/environments/production
networks:
- lan
ports:
- 8140:8140
postgres:
hostname: postgres.local
image: postgres:9.6
privileged: true
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
environment:
- POSTGRES_PASSWORD=puppetdb
- POSTGRES_USER=puppetdb
- POSTGRES_DB=puppetdb
- POSTGRES_HOST_AUTH_METHOD="md5"
networks:
- lan
ports:
- 5432:5432
server1:
hostname: server1.local
image: server:latest
privileged: true
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
environment:
- FACTER_role=role::base
networks:
- lan
networks:
lan: