1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-28 09:08:36 +02:00
dockerfiles/ambari/docker-compose.yml
2021-11-30 19:03:01 +08:00

32 lines
686 B
YAML

version: "3.8"
services:
server:
image: vimagick/ambari
hostname: ambari-server
ports:
- "8080:8080"
- "8440:8440"
- "8441:8441"
volumes:
- ./data/ambari:/etc/ambari-server/conf
- ./data/log:/var/log/ambari-server
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:14-alpine
volumes:
- ./data/postgres:/var/lib/postgresql/data
environment:
- POSTGRES_USER=ambari
- POSTGRES_PASSWORD=ambari
- POSTGRES_DB=ambari
restart: unless-stopped