-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
54 lines (53 loc) · 1.08 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
services:
news-backend:
image: server
build:
context: server
dockerfile: Dockerfile
restart: always
links:
- summarizing_api
env_file: server/.env
environment:
HOST: 0.0.0.0
PORT: 80
NEXT_AUTH_URL: "http://127.0.0.1:80"
SUMM_HOST: http://summarizing_api
SUMM_PORT: 80
volumes:
- ./server:/app
- /app/node_modules
command: "npm run dev"
news-client:
image: client
build:
context: client
dockerfile: Dockerfile
restart: always
links:
- news-backend
env_file: client/.env
environment:
HOST: 0.0.0.0
PORT: 80
BACKEND_HOST: news-backend
BACKEND_PORT: 80
NEXT_AUTH: http://news-backend:4000
ports:
- "8000:80"
volumes:
- ./client:/app
- /app/node_modules
command: "npm run dev"
summarizing_api:
image: sum_api
build:
context: sum_api
dockerfile: Dockerfile
restart: always
environment:
HOST: 0.0.0.0
PORT: 80
volumes:
- ./sum_api:/app
- /app/venv