-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-local.yaml
More file actions
99 lines (88 loc) · 2.83 KB
/
docker-compose-local.yaml
File metadata and controls
99 lines (88 loc) · 2.83 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
version: "3.9"
services:
mongo:
image: mongo
restart: always
network_mode: "host"
ports:
- '27017:27017'
volumes:
- ~/Desktop/map_insight/mapinsight_server/mongo/data:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: password
rabbitmq:
image: rabbitmq:3-management-alpine
container_name: 'rabbitmq'
network_mode: "host"
ports:
- 5672:5672
- 15672:15672
volumes:
- ~/Desktop/map_insight/mapinsight_server/rabbitmq/data/:/var/lib/rabbitmq/
- ~/Desktop/map_insight/mapinsight_server/rabbitmq/log/:/var/log/rabbitmq
healthcheck:
test: ["CMD", "rabbitmqctl", "status"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
gateway:
build:
context: ./gateway
network_mode: "host"
volumes:
- ~/Desktop/map_insight/mapinsight_server/gateway/:/app
environment:
PORT: 80
SEARCH_SERVICE_URI: http://search:8000
NOTIFICATION_SERVICE_URI: http://notifications:8001
depends_on:
rabbitmq:
condition: service_healthy
ports:
- '80:80'
search:
build:
context: ./search
network_mode: "host"
volumes:
- ~/Desktop/map_insight/mapinsight_server/search/:/app
environment:
PORT: 8000
MAP_INSIGHT_GCP_KEY: AIzaSyCMcayRBlOcBA6dJZF8lz6EIUR_mb8dWak
MONGO_URI: mongodb+srv://admin:tDzCKrymbrltfyFd@mapinsight-dev.aztga.mongodb.net/?retryWrites=true&w=majority&appName=mapinsight-dev
RABBIT_MQ_URI: amqps://vgaivrln:G3OztnWg3ZIQNvh2ziSvmlv7DPMWd73X@rattlesnake.rmq.cloudamqp.com/vgaivrln
ports:
- '8000:8000'
depends_on:
rabbitmq:
condition: service_healthy
insights:
build:
context: ./insights
network_mode: "host"
volumes:
- ~/Desktop/map_insight/mapinsight_server/insights/:/app
environment:
NOTIFICATION_URL: http://notifications:8001
RABBIT_MQ_URI: amqps://vgaivrln:G3OztnWg3ZIQNvh2ziSvmlv7DPMWd73X@rattlesnake.rmq.cloudamqp.com/vgaivrln
OPENAI_API_KEY: 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
MONGO_URI: mongodb+srv://admin:tDzCKrymbrltfyFd@mapinsight-dev.aztga.mongodb.net/?retryWrites=true&w=majority&appName=mapinsight-dev
depends_on:
rabbitmq:
condition: service_healthy
notifications:
build:
context: ./notifications
network_mode: "host"
volumes:
- ~/Desktop/map_insight/mapinsight_server/notifications/:/app
environment:
PORT: 8001
RABBIT_MQ_URI: amqps://vgaivrln:G3OztnWg3ZIQNvh2ziSvmlv7DPMWd73X@rattlesnake.rmq.cloudamqp.com/vgaivrln
depends_on:
rabbitmq:
condition: service_healthy
ports:
- '8001:8001'