-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (41 loc) · 911 Bytes
/
docker-compose.yml
File metadata and controls
47 lines (41 loc) · 911 Bytes
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
version: '3.7'
x-env-defaults: &env
YARN_CACHE_FOLDER: /.yarn-cache
NODE_ENV: development
x-env-mongo: &env-mongo
TENANT_KEY: ${TENANT_KEY-demo_demo}
MONGO_DSN: ${MONGO_DSN-mongodb://mongodb:27017}
ENABLE_BASEDB_LOGGING: ${ENABLE_BASEDB_LOGGING-}
x-node-defaults: &node
tty: true
init: true
image: node:10.15-alpine
entrypoint: ["node"]
working_dir: /scripts
volumes:
- .:/scripts:cached
- ./node_modules:/scripts/node_modules:delegated
- yarn-cache:/.yarn-cache
environment:
<<: *env
services:
script:
<<: *node
environment:
<<: *env
<<: *env-mongo
working_dir: /scripts
entrypoint: ["/scripts/node_modules/.bin/gulp"]
depends_on:
- mongodb
mongodb:
tty: true
image: mongo:3.4
volumes:
- mongodb:/data/db
- .:/scripts:cached
ports:
- "10020:27017"
volumes:
mongodb: {}
yarn-cache: {}