-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (55 loc) · 1.33 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
version: '3'
services:
recommender:
build:
context: './recommender'
dockerfile: Dockerfile
target: base
volumes:
- ./recommender:/home/python/app
container_name: clickbait-recommender
expose:
- '5002'
ports:
- '5002:5002'
command: python3 app.py
user:
build:
context: './user'
dockerfile: Dockerfile
target: base
volumes:
- ./user/src:/home/node/app/src
- ./user/nodemon.json:/home/node/app/nodemon.json
container_name: clickbait-users
expose:
- '4003'
ports:
- '4003:4003'
command: yarn dev
web:
build:
context: './web'
dockerfile: Dockerfile
target: base
volumes:
- ./web:/home/node/app
container_name: clickbait-web
expose:
- '3000'
ports:
- '3000:3000'
command: yarn dev
depends_on:
- recommender
- user
nginx:
image: nginx:latest
ports:
- '8080:8080'
volumes:
- ./default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- web
- recommender
- user