-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
87 lines (87 loc) · 1.97 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
version: "3.8"
services:
frontend:
container_name: frontend
stdin_open: true
tty: true
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- 3000:3000
volumes:
- /frontend/node_modules
- ./frontend:/frontend
environment:
- PORT=80
- CHOKIDAR_USEPOLLING=true
apigateway:
container_name: apigateway
build:
context: ./ApiGateway
dockerfile: Dockerfile
ports:
- 8004:8000
locationmicroservice:
container_name: locationmicroservice
build:
context: ./locationmicroservice
dockerfile: Dockerfile
depends_on:
- neo4j
ports:
- "8000:8000"
environment:
- NEO4J_ADDR=neo4j
usermicroservice:
container_name: usermicroservice
build:
context: ./UserMicroservice
dockerfile: Dockerfile
depends_on:
- postgres
ports:
- "8001:8000"
environment:
- POSTGRES_ADDR=postgres
tripinfomicroservice:
container_name: tripinfomicroservice
build:
context: ./TripinfoMicroservice
dockerfile: Dockerfile
depends_on:
- mongodb
ports:
- "8002:8000"
environment:
- MONGODB_ADDR=mongodb
mongodb:
container_name: mongodb
image: mongo
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: 123456
MONGO_INITDB_DATABASE: trip
ports:
- "27017:27017"
postgres:
container_name: postgres
build:
context: ./UserMicroservice/PostgresFiles
dockerfile: Dockerfile
environment:
POSTGRES_PASSWORD: 123456
POSTGRES_USER: root
ports:
- "5432:5432"
neo4j:
container_name: neo4j
image: neo4j:latest
platform: linux/amd64
environment:
- NEO4J_dbms_security_procedures_unrestricted=gds.*
- NEO4J_dbms_security_procedures_allowlist=gds.*
- NEO4J_AUTH=neo4j/123456
- NEO4JLABS_PLUGINS=["graph-data-science"]
ports:
- '7687:7687'