-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
54 lines (48 loc) · 1022 Bytes
/
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
version: '3.7'
x-env-defaults: &env
NEW_RELIC_ENABLED: ${NEW_RELIC_ENABLED-0}
NEW_RELIC_LICENSE_KEY: ${NEW_RELIC_LICENSE_KEY-(unset)}
NODE_ENV: development
TERMINUS_TIMEOUT: 1000
TERMINUS_SHUTDOWN_DELAY: 0
YARN_CACHE_FOLDER: /.yarn-cache
x-node-defaults: &node
tty: true
init: true
image: node:16.13-alpine
working_dir: /omeda
restart: always
volumes:
- .:/omeda:cached
- ./node_modules:/omeda/node_modules:delegated
- yarn-cache:/.yarn-cache
environment:
<<: *env
services:
mongodb:
image: mongo:3.4
volumes:
- mongodb:/data/db
ports:
- "9910:27017"
redis:
tty: true
image: redis:6.2-alpine
ports:
- "9911:6379"
graphql:
<<: *node
working_dir: /omeda/services/graphql
entrypoint: ["yarn"]
command: ["dev"]
environment:
<<: *env
MONGO_URI: ${MONGO_URI-mongodb://mongodb:27017}
depends_on:
- mongodb
- redis
ports:
- "8990:8990"
volumes:
yarn-cache: {}
mongodb: {}