-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
125 lines (117 loc) · 2.84 KB
/
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
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
version: "2"
volumes:
mongodb: ~
services:
app:
environment:
- API_ENDPOINT=http://api:4000
- DB_URI=mongodb://mongo/oam-api
- BROWSER_URL=http://localhost:3000
- OAM_DEBUG=true
- HOST=0.0.0.0
env_file: .env.local
build:
context: .
args:
- NODE_ENV=development
command: "false"
api:
extends: app
environment:
- PORT=4000
- HOST_TLD=localhost
- COOKIE_PASSWORD=12345678901234567890123456789012
- TILER_BASE_URL=http://localhost:8000
command: nodemon index.js
depends_on:
- mongo
links:
- mongo
ports:
- 4000:4000
volumes:
- ./bin:/app/bin
- ./controllers:/app/controllers
- ./models:/app/models
- ./plugins:/app/plugins
- ./routes:/app/routes
- ./services:/app/services
- ./test:/app/test
- ./catalog-worker.js:/app/catalog-worker.js
- ./config.js:/app/config.js
- ./index.js:/app/index.js
- ./newrelic.js:/app/newrelic.js
- ./package.json:/app/package.json
worker:
extends: app
environment:
- DOT_ENV_FILENAME=.env.local
- CRON_TIME=*/15 * * * *
- PGHOST=host.docker.internal # postgres from mosaic-tiler in dev mode on localhost
- PGPORT=5432
- PGUSER=postgres
- PGPASSWORD=postgres
- PGDATABASE=postgres
command: nodemon catalog-worker.js
depends_on:
- mongo
- register
links:
- mongo
- register
volumes:
- ./bin:/app/bin
- ./controllers:/app/controllers
- ./models:/app/models
- ./plugins:/app/plugins
- ./routes:/app/routes
- ./services:/app/services
- ./test:/app/test
- ./catalog-worker.js:/app/catalog-worker.js
- ./config.js:/app/config.js
- ./index.js:/app/index.js
- ./newrelic.js:/app/newrelic.js
- ./package.json:/app/package.json
transcoder:
extends: app
command: nodemon bin/transcoder.js
depends_on:
- mongo
links:
- api
- mongo
volumes:
- ./bin:/app/bin
- ./controllers:/app/controllers
- ./models:/app/models
- ./plugins:/app/plugins
- ./routes:/app/routes
- ./services:/app/services
- ./test:/app/test
- ./catalog-worker.js:/app/catalog-worker.js
- ./config.js:/app/config.js
- ./index.js:/app/index.js
- ./newrelic.js:/app/newrelic.js
- ./package.json:/app/package.json
register:
build:
context: .
args:
- NODE_ENV=development
command: http-server test/
ports:
- 8080:8080
volumes:
- ./test:/app/test
mongo:
image: mongo:3
volumes:
- mongodb:/data/db
mongo-express:
image: mongo-express:1.0.0-alpha.4
ports:
- 8081:8081
links:
- mongo
environment:
ME_CONFIG_MONGODB_URL: mongodb://mongo:27017/