-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
108 lines (98 loc) · 2.67 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
version: '3.7'
services:
minio:
image: minio/minio:RELEASE.2020-10-28T08-16-50Z
volumes:
- minio_data:/data
ports:
- "9000:${MINIO_PORT}"
environment:
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
command: server /data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:${MINIO_PORT}/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
image-object-service:
build: ./Image-Object-Service
ports:
- "8000:${IMAGE_OBJECT_SERVICE_PORT}"
environment:
PORT: ${IMAGE_OBJECT_SERVICE_PORT}
MINIO_PORT: ${MINIO_PORT}
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
MINIO_BUCKET_NAME: ${MINIO_BUCKET_NAME}
MINIO_ENDPOINT: ${MINIO_ENDPOINT}
depends_on:
- minio
mongodb:
image: mongo:latest
environment:
- MONGO_INITDB_DATABASE=event_metadata
ports:
- 27017:27017
expose:
- 27017
volumes:
- mongodb_data_container:/data/db
logdb:
build: ./Middleware/LoggingDB
image: logger-mysql
volumes:
- logger_container:/data/logdb
logging:
driver: none
command: --init-file /data/logdb/init.sql
environment:
MYSQL_ROOT_PASSWORD: pw
MYSQL_DATABASE: logDb
MYSQL_USER: user
MYSQL_PASSWORD: pw
ports:
- "1234:3306"
metadata-service:
build: ./Metadata-Service/MetadataService
image: metadata-service
container_name: metadata-service
env_file:
- ./Metadata-Service/MetadataService/metadataService.env
depends_on:
- mongodb
ports:
- 1331:8080
workflow-service:
build: ./Workflow
command: sh -c './wait-for middleware:8080 -t 300 -- python -u ./src/workflow.py'
depends_on:
- middleware
- image-object-service
volumes:
- "${PATH_TO_IMAGE_DIR}:/app/data"
environment:
API_ENDPOINT: ${API_ENDPOINT}
IOS_ENDPOINT: "http://image-object-service:${IMAGE_OBJECT_SERVICE_PORT}"
METADATA_ENDPOINT: "http://metadata-service:8080"
REQUEST_INTERVAL: ${REQUEST_INTERVAL}
middleware:
build: ./Middleware
command: sh -c './wait-for logdb:3306 -t 200 -- java -jar /app/AICMIDDLEWARE-0.0.1-SNAPSHOT.jar'
depends_on:
- metadata-service
- image-object-service
- logdb
ports:
- "9999:8080"
environment:
DROPBOX_FOLDERNAME: ${DROPBOX_FOLDERNAME}
DROPBOX_ACCESSTOKEN: ${DROPBOX_ACCESSTOKEN}
frontend:
build: ./frontend
ports:
- "8080:4200"
volumes:
minio_data:
mongodb_data_container:
logger_container: