-
Notifications
You must be signed in to change notification settings - Fork 19
/
docker-compose.development.yml
80 lines (58 loc) · 1.74 KB
/
docker-compose.development.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
version: '3.7'
x-node-yarn-cache-volume: &nodejs-yarn-cache-volume ./mounted-volumes/yarn_cache:/usr/local/yarn_cache:delegated
x-node-service: &nodejs
build:
target: development
environment:
- YARN_CACHE_FOLDER=/usr/local/yarn_cache
- NODE_ENV=development
- WEBSTACK_PROTOCOL
stop_grace_period: 2s
command: [ "yarn", "dev" ]
x-multi-service-dev-backend: &multi-service-dev-backend
build:
target: development
volumes:
- ./services/backend-api/app:/backend-api:cached
environment:
- RUBY_ENV=development
stop_grace_period: 2s
services:
traefik-gateway:
command:
- "--configfile=/etc/traefik/traefik.toml"
- "--api"
- "--docker.domain=docker.localhost" # todo: remove from toml
- "--logLevel=INFO"
- "--docker.watch=true"
stop_grace_period: 2s
frontend-web:
<<: *nodejs
volumes:
- *nodejs-yarn-cache-volume
- ./services/frontend-web/app:/frontend-web:cached
command: [ "yarn", "dev" ]
backend-api:
<<: *multi-service-dev-backend
background-worker:
<<: *multi-service-dev-backend
passportjs-auth:
<<: *nodejs
# note: when working on this service, override the command to use nodemon (to watch for file changes) using:
# command: [ "yarn", "dev" ]
volumes:
- *nodejs-yarn-cache-volume
- ./services/passportjs-auth/app:/passportjs-auth:cached
websocket-push:
<<: *nodejs
# note: uncomment command to use with nodemon in dev mode::
# command: [ "yarn", "dev" ]
volumes:
- *nodejs-yarn-cache-volume
- ./services/websocket-push/app:/websocket-push:cached
redis-main:
stop_grace_period: 6s
postgres-main:
stop_grace_period: 6s
rabbitmq-broker:
stop_grace_period: 6s