forked from carrotpaul/forte
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (45 loc) · 1.06 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
version: "3.1"
services:
web:
image: forte
depends_on:
- zookeeper
- kafka
secrets:
- api_auth_certificate
- google_oauth_credentials
environment:
KAFKA_CONSUMER_TOPIC: "forte-download"
KAFKA_CONSUMER_BROKERS: kafka:9092
YOUTUBEDL_DOWNLOAD_PATH: "/tmp/"
volumes:
- ./server:/app/server
zookeeper:
image: zookeeper
ports:
- "2181:2181"
kafka:
image: confluentinc/cp-kafka
ports:
- "9092:9092"
depends_on:
- zookeeper
environment:
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
kafka-rest:
image: confluentinc/cp-kafka-rest
ports:
- "8082:8082"
depends_on:
- zookeeper
- kafka
environment:
KAFKA_REST_HOST_NAME: localhost:8082
KAFKA_REST_ZOOKEEPER_CONNECT: zookeeper:2181
secrets:
api_auth_certificate:
file: ./server/secret/api_certificate.cred
google_oauth_credentials:
file: ./server/secret/google_oauth.cred