-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
86 lines (79 loc) · 2.1 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
80
81
82
83
84
85
86
version: '3.8'
services:
client:
container_name: ol-intel-client
stdin_open: true
build:
context: ./services/client
dockerfile: Dockerfile
volumes:
- './services/client:/usr/src/app'
- '/usr/src/app/node_modules'
ports:
- 3007:3000
environment:
- NODE_ENV=development
- REACT_APP_API_SERVICE_URL=${REACT_APP_API_SERVICE_URL}
depends_on:
- api
api:
container_name: ol-intel-api
build:
context: ./services/api
dockerfile: Dockerfile
entrypoint: ['/usr/src/app/entrypoint.sh']
volumes:
- './services/api:/usr/src/app'
ports:
- 5004:5000
environment:
- FLASK_ENV=development
- APP_SETTINGS=src.config.DevelopmentConfig
- DATABASE_URL=postgresql://ol_intel:ol_intel@db:5432/viz_dev
- DATABASE_TEST_URL=postgresql://ol_intel:ol_intel@db:5432/viz_test
depends_on:
- db
db:
container_name: ol-intel-db
build:
context: ./services/datahub/src/db
dockerfile: Dockerfile
expose:
- 5432
environment:
- POSTGRES_USER=ol_intel
- POSTGRES_PASSWORD=ol_intel
volumes:
- postgres_data:/var/lib/postgresql/data/
crawler:
container_name: ol-intel-crawler
build:
context: ./services/datahub
dockerfile: Dockerfile
command: python /usr/src/app/crawler/app/main.py
volumes:
- ./services/datahub/src/crawler/:/usr/src/app/crawler/
- ./services/datahub/src/db/:/usr/src/app/db/
depends_on:
- db
env_file:
- ./services/datahub/.env.dev
tools:
container_name: ol-intel-tools
build:
context: ./services/tools
dockerfile: Dockerfile
entrypoint: ['/usr/src/app/entrypoint.sh']
volumes:
- './services/tools/src:/usr/src/app/src'
ports:
- 5005:5000
environment:
- FLASK_ENV=development
- APP_SETTINGS=src.config.DevelopmentConfig
- DATABASE_URL=postgresql://ol_intel:ol_intel@db:5432/viz_dev
- DATABASE_TEST_URL=postgresql://ol_intel:ol_intel@db:5432/viz_test
depends_on:
- db
volumes:
postgres_data: