forked from electricitymaps/electricitymaps-contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (40 loc) · 1.06 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
version: '2'
services:
web:
build:
context: .
dockerfile: web/Dockerfile
command: npm run server-dev
depends_on: [mongo, memcached]
environment:
- ENV=development
- MEMCACHED_HOST=memcached
- 'MONGO_URL=mongodb://mongo:27017/electricity'
ports: ['8000:8000']
volumes:
- './shared:/home/shared'
- './web/app:/home/web/app'
- './web/package.json:/home/web/package.json'
- './web/public:/home/web/public'
- './web/server.js:/home/web/server.js'
- './web/views:/home/web/views'
- './web/webpack.config.js:/home/web/webpack.config.js'
- './web/locales:/home/web/locales'
feeder:
build:
context: .
dockerfile: feeder/Dockerfile
depends_on: [mongo]
env_file: ./secrets.env
environment:
- ENV=development
- MEMCACHED_HOST=memcached
- 'MONGO_URL=mongodb://mongo:27017/electricity'
volumes:
- './feeder:/home/feeder'
- './shared:/home/shared'
memcached:
image: memcached
mongo:
image: mongo
volumes: ['/data/db']