-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
81 lines (75 loc) · 1.71 KB
/
docker-compose.yaml
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
---
version: '3.8'
networks:
bizres-network:
volumes:
db_data:
services:
frontend:
build:
context: ./frontend
target: dev
image: bizres-frontend:dev
container_name: bizres_frontend
restart: unless-stopped
environment:
NODE_ENV: development
NEXT_PUBLIC_API_URL: http://localhost:1337
ports:
- 3000:3000
volumes:
- ./frontend:/usr/src/app
- /usr/src/app/node_modules
- /usr/src/app/.next
working_dir: /usr/src/app
networks:
- bizres-network
depends_on:
- backend
- postgres
backend:
build:
context: ./backend
target: dev
image: bizres-backend:dev
container_name: bizres_backend
restart: unless-stopped
environment:
NODE_ENV: development
DATABASE_CLIENT: postgres
DATABASE_NAME: bizres_db
DATABASE_HOST: bizresdb
DATABASE_PORT: 5432
DATABASE_USERNAME: bizres_user
DATABASE_PASSWORD: bizres_pwd
DATABASE_SSL: "false"
volumes:
- ./backend:/usr/src/app
ports:
- '1337:1337'
networks:
- bizres-network
depends_on:
- postgres
postgres:
image: postgres
container_name: bizresdb
environment:
POSTGRES_DB: bizres_db
POSTGRES_USER: bizres_user
POSTGRES_PASSWORD: bizres_pwd
volumes:
- db_data:/var/lib/postgresql/data
ports:
- '5432:5432'
networks:
- bizres-network
node-red-service:
build:
context: ./workflow
image: bizres-workflow
container_name: bizres_worklow
ports:
- "9880:1880"
environment:
- NODE_RED_ENABLE_PROJECTS=true # must be set to true if you want to modify the node-red flow files through node-red editor