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