-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
91 lines (84 loc) · 2.11 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
version: '3.8'
services:
mongodb:
image: mongodb/mongodb-community-server:6.0-ubi8
container_name: mongodb
ports:
- "27017:27017"
restart: unless-stopped
hardhat-node:
build:
context: .
dockerfile: zarf/docker/hardhat/Dockerfile
container_name: hardhat-node
ports:
- "8545:8545"
restart: unless-stopped
redis:
image: redis/redis-stack-server:latest
container_name: redis
ports:
- "6379:6379"
restart: unless-stopped
zookeeper:
image: confluentinc/cp-zookeeper:7.0.1
environment:
- ZOOKEEPER_CLIENT_PORT=2181
kafka:
container_name: kafka
image: confluentinc/cp-kafka:7.0.1
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
ports:
- "9092:9092"
depends_on:
- zookeeper
restart: on-failure
user-service:
build:
context: .
dockerfile: zarf/docker/user-service/Dockerfile
container_name: user-service
ports:
- "3000:3000"
- "4000:4000"
environment:
- DB_URI=mongodb://mongodb:27017
- HARDHAT_NODE_URL=http://hardhat-node:8545
- REDIS_URL=redis://redis:6379
- KAFKA_ADDRESS=kafka
depends_on:
- mongodb
- hardhat-node
- redis
- zookeeper
- kafka
restart: unless-stopped
notification-service:
build:
context: .
dockerfile: zarf/docker/notification-service/Dockerfile
container_name: notification-service
ports:
- "3001:3001"
environment:
- KAFKA_ADDRESS=kafka:9092
depends_on:
- kafka
restart: unless-stopped
frontend:
build:
context: ./app/frontend/blogchain-vue
dockerfile: Dockerfile
container_name: blogchain-vue
ports:
- "8080:80"
environment:
- VUE_APP_BACKEND_URL=http://user-service:3000
restart: unless-stopped