-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
79 lines (73 loc) · 1.77 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
version: '3.7'
services:
ika_classifier:
build: ./ika_classifier
command: uvicorn app.main:app --reload --host 0.0.0.0 --port 8000 --workers 16
volumes:
- ./ika_classifier/:/app/
ports:
- 8004:8000
environment:
- MONGO_URI=ika_db:27017
- PATH_FILE=temp/
- HOME_URI=/home
- GOOGLE_GMAIL_URI=https://mail.google.com/mail/u/0/#inbox
- ENV=localhost
depends_on:
- ika_db
ika_streamer:
build: ./ika_streamer
command: uvicorn app.main:app --reload --host 0.0.0.0 --port 8000 --workers 16
volumes:
- ./ika_streamer/:/app/
ports:
- 8002:8000
environment:
- MONGO_URI=ika_db:27017
depends_on:
- ika_db
ika_web:
build: ./ika_web
volumes:
- ./ika_web/:/ika_web/
ports:
- "8000:8000"
environment:
- FN_AUTH_REDIRECT_URI=http://127.0.0.1:8000/google/auth
- FN_BASE_URI=http://127.0.0.1:8000
- MONGO_URI=ika_db:27017
- PORT_APP=8000
- OAUTHLIB_INSECURE_TRANSPORT=1
- FLASK_APP=app/app.py
- FLASK_DEBUG=1
- FLASK_ENV=development
- CLIENT_SECRET=resources/client_secret_localhost.json
- PATH_FILE=temp/
- HOME_URI=/home
- ENV_FILE_LOCATION=./.env
command: python -m flask run -p 8000 --host=0.0.0.0
depends_on:
- ika_db
smtpd:
build:
context: ./smtpd
dockerfile: Dockerfile
ports:
- "1025:1025"
command: python -m smtpd -n -c DebuggingServer localhost:1025
ika_db:
build:
context: ./mongodb
dockerfile: Dockerfile
image : mongo:latest
ports :
- "27017:27017"
nginx:
build:
context: ./nginx
dockerfile: Dockerfile
ports:
- "8080:8080"
depends_on:
- ika_streamer
- ika_web