forked from clearview/rootspace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-local.yml
82 lines (74 loc) · 1.46 KB
/
docker-compose-local.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
version: "3.3"
services:
api:
container_name: root_api
image: root_api
volumes:
- ./api:/opt/project/
- /opt/project/node_modules
command: sh -c "yarn typeorm migration:run && yarn start"
- "9229:9229"
environment:
NODE_ENV: development
y_websocket:
image: root_api
container_name: root_y_websocket
volumes:
- ./api:/opt/project/
- /opt/project/node_modules
command: yarn y-websocket
networks:
- backend
ports:
- "6001:6001"
- "9232:9232"
environment:
NODE_ENV: development
queue_activity:
image: root_api
container_name: root_queue_activity
volumes:
- ./api:/opt/project/
- /opt/project/node_modules
command: yarn queue:process
networks:
- backend
ports:
- "9230:9230"
environment:
NODE_ENV: development
queue_cron:
image: root_api
container_name: root_queue_cron
depends_on:
- api
- postgres
- redis
volumes:
- ./api:/opt/project/
- /opt/project/node_modules
command: yarn queue:cron
networks:
- backend
ports:
- "9231:9231"
environment:
NODE_ENV: development
web:
container_name: root_web
image: root_web
depends_on:
- api
networks:
- frontend
ports:
- "3000:3000"
- "8080:3000"
environment:
NODE_ENV: production
networks:
backend:
frontend:
volumes:
postgres:
redis: