-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
76 lines (74 loc) · 1.9 KB
/
compose.yml
File metadata and controls
76 lines (74 loc) · 1.9 KB
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
services:
server1:
restart: always
build:
context: ./
target: backend-dev
volumes:
- ./:/usr/local/app
depends_on:
- mongo
- rabbitmq
- redis
environment:
PORT: 8000
MONGO_URL: mongodb://mongo:27017/vibetalk
SERVER_SELECTION_TIMEOUT_MS: 5000
RABBITMQ_URL: amqp://rabbitmq:5672
REDIS_URL: redis://redis:6379
server2:
restart: always
build:
context: ./
target: backend-dev
volumes:
- ./:/usr/local/app
depends_on:
- mongo
- rabbitmq
- redis
environment:
PORT: 8000
MONGO_URL: mongodb://mongo:27017/vibetalk
SERVER_SELECTION_TIMEOUT_MS: 5000
RABBITMQ_URL: amqp://rabbitmq:5672
REDIS_URL: redis://redis:6379
mongo:
image: mongo:7.0-jammy
command: --logpath /dev/null
restart: always
volumes:
- vibetalk-data:/data/db
ports:
- 27017:27017
rabbitmq:
image: rabbitmq:4.0-management-alpine
logging:
driver: "none"
environment:
- RABBITMQ_FEATURE_FLAGS=khepri_db
ports:
- "5672:5672"
- "15672:15672"
redis:
image: redis/redis-stack:latest
ports:
- "6379:6379"
- "8001:8001"
nginx:
image: nginx:stable-alpine
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
ports:
- "8000:80"
depends_on:
- server1
- server2
prometheus:
image: prom/prometheus
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"
volumes:
vibetalk-data: