-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.local.yaml
132 lines (125 loc) · 3.57 KB
/
docker-compose.local.yaml
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
version: "3.2"
services:
rabbitmq:
image: rabbitmq:3-management-alpine
container_name: 'rabbitmq'
ports:
- 5672:5672
- 15672:15672
volumes:
- .data/rabbit/:/var/lib/rabbitmq/
mongodb:
image: mongo
container_name: mongodb
ports:
- "27017:27017"
volumes:
- .data/mongo/:/data/db
cryptor-trends-dataset:
image: cryptor-trends-dataset
container_name: 'cryptor-trends-dataset'
build:
context: ./src/cryptor-trends-dataset
dockerfile: Dockerfile.local
depends_on:
- rabbitmq
volumes:
- ./src/cryptor-trends-dataset:/app
env_file:
- src/cryptor-trends-dataset/.env
environment:
- RABBITMQ_HOST=rabbitmq
- RABBITMQ_PORT=5672
- RABBITMQ_USER=guest
- RABBITMQ_PASSWORD=guest
- RABBITMQ_QUEUE_NAME=cryptor-trends-dataset
cryptor-trends-coin-bot:
image: cryptor-trends-coin-bot
container_name: 'cryptor-trends-coin-bot'
build:
context: ./src/cryptor-trends-coin-bot
dockerfile: Dockerfile.local
depends_on:
- rabbitmq
- mongodb
env_file:
- src/cryptor-trends-coin-bot/.env
volumes:
- ./src/cryptor-trends-coin-bot:/app
environment:
- RABBITMQ_HOST=rabbitmq
- RABBITMQ_PORT=5672
- RABBITMQ_USER=guest
- RABBITMQ_PASSWORD=guest
- RABBITMQ_QUEUE_NAME=cryptor-trends-coin-bot
- RABBITMQ_DLQ_QUEUE_NAME=dlq-cryptor-trends-coin-bot
- MONGO_HOST=mongodb
- MONGO_PORT=27017
- MONGO_DATABASE=cryptor-trends
cryptor-trends-gemini-bot:
image: cryptor-trends-gemini-bot
container_name: 'cryptor-trends-gemini-bot'
build:
context: ./src/cryptor-trends-gemini-bot
dockerfile: Dockerfile.local
depends_on:
- rabbitmq
- mongodb
env_file:
- src/cryptor-trends-gemini-bot/.env
volumes:
- ./src/cryptor-trends-gemini-bot:/app
environment:
- RABBITMQ_HOST=rabbitmq
- RABBITMQ_PORT=5672
- RABBITMQ_USER=guest
- RABBITMQ_PASSWORD=guest
- RABBITMQ_QUEUE_NAME=cryptor-trends-gemini-bot
- RABBITMQ_DLQ_QUEUE_NAME=dlq-cryptor-trends-gemini-bot
- RABBITMQ_CONSUME_QUEUE_NAME=cryptor-trends-coin-bot
- RABBITMQ_CONSUME_DLQ_QUEUE_NAME=dlq-cryptor-trends-coin-bot
- MONGO_HOST=mongodb
- MONGO_PORT=27017
- MONGO_DATABASE=cryptor-gemini
cryptor-trends-api:
image: cryptor-trends-api
container_name: 'cryptor-trends-api'
build:
context: ./src/cryptor-trends-api
dockerfile: Dockerfile.local
depends_on:
- rabbitmq
- mongodb
env_file:
- src/cryptor-trends-api/.env
volumes:
- ./src/cryptor-trends-api:/app
ports:
- 8000:8000
environment:
- RABBITMQ_HOST=rabbitmq
- RABBITMQ_PORT=5672
- RABBITMQ_USER=guest
- RABBITMQ_PASSWORD=guest
- RABBITMQ_CONSUME_QUEUE_NAME=cryptor-trends-gemini-bot
- RABBITMQ_CONSUME_DLQ_QUEUE_NAME=dlq-cryptor-trends-gemini-bot
- MONGO_HOST=mongodb
- MONGO_PORT=27017
- MONGO_DATABASE=cryptor-api
- MONGO_COLLECTION=cryptor-trends
cryptor-trends-front:
image: cryptor-trends-front
container_name: 'cryptor-trends-front'
build:
context: ./src/cryptor-trends-front
dockerfile: Dockerfile.local
depends_on:
- cryptor-trends-api
volumes:
- ./src/cryptor-trends-front:/app
restart: always
ports:
- "3000:3000"
environment:
- NEXT_PUBLIC_API_URL= http://localhost:8000/v1/cryptocurrency
- NEXT_PUBLIC_TELEGRAM_URL= https://t.me/Crypto_Trends_Robot_bot