-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·77 lines (71 loc) · 1.54 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
version: '3.4'
networks:
recommend:
external:
name: recommender.localhost
services:
recommender-db:
container_name: recommender-db
image: postgres:12.0
networks:
default:
recommend:
env_file:
- .env
ports:
- "5433:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
recommender-search:
container_name: recommender-search
image: getmeili/meilisearch:v0.27.0
networks:
default:
recommend:
env_file:
- .env
ports:
- "7700:7700"
volumes:
- meilisearch_data:/meili_data
recommender-app:
container_name: recommender-app
image: jhonsfran/python-dev:3.8-v1
command: uvicorn --reload --host $HOST --port $PORT --log-level $LOG_LEVEL "app.main:app"
env_file:
- .env
ports:
- "8000:8000"
# jupyter notebook
- "8888:8888"
expose:
- 8000
- 8888
networks:
default:
recommend:
volumes:
- .:/opt/app
# because I don't want to upload data directory to the git repo I use this volume
- ../data:/opt/app/data
- python_dependencies:/opt/app/.venv
depends_on:
- recommender-db
recommender-login:
container_name: recommender-login
image: registry.supertokens.io/supertokens/supertokens-postgresql
env_file:
- .env
ports:
- "3567:3567"
expose:
- 3567
networks:
default:
recommend:
depends_on:
- recommender-db
volumes:
postgres_data:
python_dependencies:
meilisearch_data: