-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.override.yml
56 lines (51 loc) · 1.21 KB
/
docker-compose.override.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
version: '3.8'
services:
zookeeper:
ports:
- 2181:2181
#volumes:
#- ./kafka/zk/data:/opt/zookeeper-3.4.13/data
#- ./kafka/zk/conf:/opt/zookeeper-3.4.13/conf
kafka:
ports:
- 9092:9092
hostname: kafka
environment:
KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_LOG_DIRS: /logs
KAFKA_BROKER_ID: 1
volumes:
- /var/run/docker.sock:/var/run/docker.sock
#- ./kafka/kafka/data:/logs
db:
ports:
- 27017:27017
volumes:
- /var/lib/mongodb:/data/db
app:
build:
target: install
ports:
- 8003:8000
environment:
- API_URL=http://localhost:3000/graphql
user: 1000:1000
volumes:
- ./:/app
- ./node_modules:/app/node_modules
command: yarn workspace @luminate/app run develop --host "0.0.0.0" --port 8000
api:
build:
target: install
ports:
- 3000:3000
environment:
- PORT=3000
- DB_URL=mongodb://db:27017/luminate
user: 1000:1000
volumes:
- ./:/app
- ./node_modules:/app/node_modules
command: yarn workspace @luminate/api develop