forked from dnarkiewicz/usagov-analytics
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
38 lines (38 loc) · 1.09 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
version: "3.0"
services:
db:
image: postgres:9.6
environment:
- POSTGRES_DB=analytics-reporter
- POSTGRES_USER=analytics
volumes:
- pgdata:/var/lib/postgresql/data/
reporter:
image: node:7.8
entrypoint: ""
command: "node ./deploy/cron.js"
environment:
- ANALYTICS_ROOT_PATH=/usr/src/app
- ANALYTICS_CREDENTIALS=${ANALYTICS_CREDENTIALS}
- ANALYTICS_REPORTS_PATH=${ANALYTICS_REPORTS_PATH}
- ANALYTICS_REPORT_IDS=${ANALYTICS_REPORT_IDS}
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_BUCKET=${AWS_BUCKET}
- AWS_BUCKET_PATH=${AWS_BUCKET_PATH}
- AWS_CACHE_TIME=${AWS_CACHE_TIME}
- AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION}
- AWS_REGION=${AWS_REGION}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- BUCKET_NAME=${BUCKET_NAME}
- POSTGRES_HOST=db
- POSTGRES_USER=analytics
- POSTGRES_DATABASE=analytics-reporter
links:
- db
working_dir: /usr/src/app
volumes:
- .:/usr/src/app
- node_modules:/usr/src/app/node_modules
volumes:
node_modules:
pgdata: