-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (57 loc) · 1.64 KB
/
docker-compose.yml
File metadata and controls
61 lines (57 loc) · 1.64 KB
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
services:
redis1:
image: redis:latest
ports:
- "6379"
command: redis-server --save ""
redis2:
image: redis:latest
ports:
- "6379"
command: redis-server --save ""
statsd:
image: graphiteapp/graphite-statsd
ports:
- "80"
- "8125/udp"
- "8126"
volumes:
- "./docker/statsd-config.json:/opt/statsd/config.js"
environment:
VIRTUAL_HOST: pandapush-graphite.docker
VIRTUAL_PORT: 80
webpack:
build: .
command: bash -c "
node_modules/.bin/webpack --watch --mode development --devtool inline-source-map --config ui/webpack.config.js &
node_modules/.bin/webpack --watch --mode development --devtool inline-source-map --config client/webpack.config.js"
environment:
NODE_ENV: development
web:
build: .
command: bash -c "
knex --knexfile server/knexfile.js migrate:latest &&
./node_modules/.bin/nodemon --watch server/ server/index.js"
links:
- redis1
- redis2
- statsd
environment:
VIRTUAL_HOST: pandapush.docker
VIRTUAL_PORT: 3000
AUTH_METHOD: basic
ADMIN_USERNAME: admin
ADMIN_PASSWORD: password
REDIS_URL_ENV_VARS: REDIS1_URL,REDIS2_URL
REDIS1_URL: tcp://redis1:6379
REDIS2_URL: tcp://redis2:6379
AWS_REGION: us-east-1
AWS_ACCESS_KEY_ID: key
AWS_SECRET_ACCESS_KEY: secret
NODE_ENV: development
DEV_APPLICATION_ID: devapp
DEV_KEY_ID: devkey
DEV_KEY_SECRET: devsecret
STATSD_HOST: statsd
STATSD_PORT: 8125
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/src/app/node_modules/.bin