forked from RedHatInsights/insights-host-inventory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dev.yml
64 lines (64 loc) · 1.97 KB
/
dev.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
version: '3.1'
services:
db:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: insights
POSTGRES_USER: insights
PGUSER: insights
POSTGRES_DB: insights
ports:
- "5432:5432"
volumes:
- ./.unleash/create_unleashdb.sql:/docker-entrypoint-initdb.d/create_unleashdb.sql
healthcheck:
test: "pg_isready -h db"
interval: 2s
timeout: 5s
retries: 5
zookeeper:
image: confluentinc/cp-zookeeper
environment:
- ZOOKEEPER_CLIENT_PORT=32181
- ZOOKEEPER_SERVER_ID=1
kafka:
image: confluentinc/cp-kafka
ports:
- 29092:29092
- 9092:9092
depends_on:
- zookeeper
environment:
- KAFKA_LISTENERS=INTERNAL://kafka:9092,EXTERNAL://kafka:29092
- KAFKA_ADVERTISED_LISTENERS=INTERNAL://kafka:9092,EXTERNAL://localhost:29092
- KAFKA_LISTENER_SECURITY_PROTOCOL_MAP=INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT
- KAFKA_INTER_BROKER_LISTENER_NAME=INTERNAL
- KAFKA_BROKER_ID=1
- KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:32181
- KAFKA_AUTO_CREATE_TOPICS_ENABLE=true
unleash:
container_name: unleash
image: quay.io/cloudservices/unleash-server:4.21.0
environment:
- INIT_ADMIN_API_TOKENS=${UNLEASH_TOKEN:?}
- CHECK_VERSION=false
- DATABASE_HOST=db
- DATABASE_NAME=unleash
- DATABASE_USERNAME=${DATABASE_USER-insights}
- DATABASE_PASSWORD=${DATABASE_PASSWORD-insights}
- DATABASE_SSL=false
- IMPORT_DROP_BEFORE_IMPORT=false
- IMPORT_FILE=/.unleash/flags.json
- IMPORT_DROP_BEFORE_IMPORT=true
- LOG_LEVEL=INFO
ports:
- 4242:4242
volumes:
- './.unleash:/.unleash'
depends_on:
db:
condition: service_healthy
links:
- db:db