-
Notifications
You must be signed in to change notification settings - Fork 210
/
docker-compose.yml
102 lines (93 loc) · 3.21 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
101
102
# Configurable environment variables:
# HOST_IP - the docker host IP address
# DOCKER_ORIGIN - denotes the docker origin (dockerhub ID)
# VERSION - the version identifier tag on the packages
# DB_VERSION - the version identifier tag on the postgres/elasticsearch images (from a different origin)
# AUTOMATE_ENABLED - enable the Automate data collector (true or false)
# AUTOMATE_SERVER - the IP address or hostname of the Automate server
# AUTOMATE_TOKEN - the token for the Automate server data collector
# USER_ID - the user ID to use
# GROUP_ID - the group ID to use
version: '2.1'
services:
postgresql:
image: chefdemo/postgresql:${DB_VERSION:-stable}
environment:
HAB_POSTGRESQL: |
[superuser]
name = 'hab'
password = 'chefrocks'
volumes:
- postgresql-data:/hab/svc/postgresql/data
chef-server-ctl:
image: ${DOCKER_ORIGIN:-chef}/chef-server-ctl:${VERSION:-stable}
command: --peer postgresql
environment:
HAB_CHEF_SERVER_CTL: |
[chef_server_api]
ip = '${HOST_IP:-172.17.0.1}'
[secrets.data_collector]
token = "${AUTOMATE_TOKEN:-93a49a4f2482c64126f7b6015e6b0f30284287ee4054ff8807fb63d9cbd1c506}"
elasticsearch:
image: chefdemo/elasticsearch5:${DB_VERSION:-stable}
command: --peer postgresql
ulimits:
nofile:
soft: 65536
hard: 65536
volumes:
- elasticsearch-data:/hab/svc/elasticsearch/data
oc_id:
image: ${DOCKER_ORIGIN:-chef}/oc_id:${VERSION:-stable}
command: --peer postgresql
--bind database:postgresql.default
--bind chef-server-ctl:chef-server-ctl.default
bookshelf:
image: ${DOCKER_ORIGIN:-chef}/bookshelf:${VERSION:-stable}
command: --peer postgresql
--bind database:postgresql.default
--bind chef-server-ctl:chef-server-ctl.default
oc_bifrost:
image: ${DOCKER_ORIGIN:-chef}/oc_bifrost:${VERSION:-stable}
command: --peer postgresql
--bind database:postgresql.default
--bind chef-server-ctl:chef-server-ctl.default
oc_erchef:
image: ${DOCKER_ORIGIN:-chef}/oc_erchef:${VERSION:-stable}
command: --peer postgresql
--bind bookshelf:bookshelf.default
--bind oc_bifrost:oc_bifrost.default
--bind database:postgresql.default
--bind elasticsearch:elasticsearch5.default
--bind chef-server-ctl:chef-server-ctl.default
environment:
HAB_OC_ERCHEF: |
[chef_authn]
keygen_cache_workers=2
keygen_cache_size=10
keygen_start_size=0
keygen_timeout=20000
[data_collector]
enabled = ${AUTOMATE_ENABLED:-false}
server = "${AUTOMATE_SERVER:-localhost}"
port = 443
chef-server-nginx:
image: ${DOCKER_ORIGIN:-chef}/chef-server-nginx:${VERSION:-stable}
tty: true
stdin_open: true
command: --peer postgresql
--bind oc_erchef:oc_erchef.default
--bind oc_bifrost:oc_bifrost.default
--bind oc_id:oc_id.default
--bind bookshelf:bookshelf.default
--bind elasticsearch:elasticsearch5.default
--bind chef-server-ctl:chef-server-ctl.default
environment:
HAB_CHEF_SERVER_NGINX: |
access_log = "/dev/tty"
ports:
- 80:8080
- 443:8443
volumes:
postgresql-data:
elasticsearch-data: