forked from electricitymaps/electricitymaps-contrib
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathproduction.yaml
34 lines (33 loc) · 1.04 KB
/
production.yaml
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:
api:
build: api
environment:
- ENV=production
- MEMCACHED_HOST=memcached
- MONGO_URL=mongodb://mongo:27017/electricity
- STATSD_HOST=grafana-graphite-statsd.infrastructure_default
- VIRTUAL_HOST=electricitymap-api.tmrow.co
env_file: ./mailgun.env
depends_on: [mongo, memcached]
networks: [default, infrastructure] # required to be able to com' with statsd & nginx
volumes: ['/home/shared/electricitymap/data:/home/data']
feeder:
build: feeder
environment:
- ENV=production
- MONGO_URL=mongodb://mongo:27017
- STATSD_HOST=grafana-graphite-statsd.infrastructure_default
env_file: ./mailgun.env
depends_on: [mongo]
networks: [default, infrastructure] # required to be able to com' with statsd
volumes: ['/home/shared/electricitymap/data:/home/data']
memcached:
image: memcached
mongo:
image: mongo
volumes: ['/home/shared/electricitymap/mongodata:/data/db']
networks:
infrastructure:
external:
name: infrastructure_default