2019-09-29 12:40:40 +02:00
|
|
|
version: "3.7"
|
2019-09-29 02:59:17 +02:00
|
|
|
|
2019-09-29 12:40:40 +02:00
|
|
|
services:
|
|
|
|
|
2019-09-30 01:58:46 +02:00
|
|
|
server:
|
2019-09-29 12:40:40 +02:00
|
|
|
image: vimagick/ambari
|
|
|
|
hostname: ambari-server
|
|
|
|
ports:
|
|
|
|
- "8080:8080"
|
2019-09-29 13:26:37 +02:00
|
|
|
- "8440:8440"
|
|
|
|
- "8441:8441"
|
2019-09-29 12:40:40 +02:00
|
|
|
volumes:
|
|
|
|
- ./data/ambari:/etc/ambari-server/conf
|
2019-09-30 01:58:46 +02:00
|
|
|
- ./data/log:/var/log/ambari-server
|
2019-09-29 12:40:40 +02:00
|
|
|
extra_hosts:
|
|
|
|
- ambari-agent1:172.16.1.101
|
|
|
|
- ambari-agent2:172.16.1.102
|
|
|
|
- ambari-agent3:172.16.1.103
|
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
postgres:
|
|
|
|
image: postgres:alpine
|
|
|
|
volumes:
|
|
|
|
- ./data/postgres:/var/lib/postgresql/data
|
|
|
|
environment:
|
|
|
|
- POSTGRES_USER=ambari
|
|
|
|
- POSTGRES_PASSWORD=ambari
|
|
|
|
- POSTGRES_DB=ambari
|
|
|
|
restart: unless-stopped
|