-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
76 lines (71 loc) · 1.71 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
version: "3.8"
services:
client:
stdin_open: true # what does this do?
build:
context: './service_client'
ports:
- '3000:3000'
volumes:
- ./service_client/:/usr/src/app
- ./service_client/app/node_modules
notion_user:
container_name: notion_user
image: francescoxx/nsp-template:0.0.2
build:
context: ./service_users
ports:
- "5001:5001"
environment:
- NODE_ENV=production
- MICROSERVICE_PORT=5001
- PGUSER=francesco
- PGPASSWORD=12345
- PGDATABASE=nsp_database
- PGHOST=nsp_db # NAME OF THE SERVICE
depends_on:
- notion_database
volumes:
- ./service_users/:/usr/src/app
- ./service_users/app/node_modules
notion_writable:
container_name: notion_writable
image: francescoxx/nsp-template:0.0.2
build:
context: ./service_writable
ports:
- "5000:5000"
env_file:
- ./service_writable/.env
environment:
- NODE_ENV=production
- MICROSERVICE_PORT=5000
- PGUSER=francesco
- PGPASSWORD=12345
- PGDATABASE=nsp_database
- PGHOST=nsp_db # NAME OF THE SERVICE
depends_on:
- notion_database
volumes:
- ./service_writable/:/usr/src/app
notion_database:
container_name: notion_database
image: "postgres:12"
ports:
- "5432:5432"
environment:
- POSTGRES_USER=francesco
- POSTGRES_PASSWORD=12345
- POSTGRES_DB=nsp_database
volumes:
- nps_data:/var/lib/postgresql/data
notion_scraper:
container_name: notion_scraper
build:
context: ./service_flask
volumes:
- ./service_flask:/usr/src/app
ports:
- "5002:5002"
volumes:
nps_data: {}