-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
86 lines (80 loc) · 2.18 KB
/
Copy pathdocker-compose.yml
File metadata and controls
86 lines (80 loc) · 2.18 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
version: "3"
services:
db:
restart: always
container_name: review_movie_db
image: postgres:13.0-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
ports:
- "5433:5432"
expose:
- "5433"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=review_movie
api:
restart: always
container_name: review_movie_api
build: ./api
volumes:
- ./api:/app
ports:
- "8000:8000"
- "8888:8888"
environment:
- DB_HOST=db
- DB_NAME=review_movie
- DB_USER=postgres
- DB_PASSWORD=postgres
- ES_HOST=elasticsearch
depends_on:
- db
- elasticsearch
frontend:
restart: always
container_name: review_movie_frontend
build: ./frontend
environment:
CHOKIDAR_USEPOLLING: "true"
volumes:
- ./frontend:/app
- /app/node_modules
stdin_open: true
ports:
- "3000:3000"
depends_on:
- api
elasticsearch:
image: elasticsearch:7.12.0
environment:
- node.max_local_storage_nodes=1
- discovery.type=single-node
volumes:
- esdata:/app/elasticsearch/data
ports:
- "9200:9200"
- "9300:9300"
# rs:
# restart: always
# container_name: recommendation_system_api
# build: ./recommendation-system
# volumes:
# - ./recommendation-system:/app
# - /etc/timezone:/etc/timezone:ro
# - /etc/localtime:/etc/localtime:ro
# ports:
# - "5000:5000"
# environment:
# - DB_HOST=db
# - DB_NAME=review_movie
# - DB_USER=postgres
# - DB_PASSWORD=postgres
# - TZ=Asia/Ho_Chi_Minh
# depends_on:
# - db
volumes:
postgres_data:
esdata:
driver: local