-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
35 lines (32 loc) · 916 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
35
elasticsearch:
image: elasticsearch:2.1
rabbitmq:
image: rabbitmq:3-management
hostname: rabbitmq
ports: [5672]
environment:
- RABBITMQ_ERLANG_COOKIE=some_secret_cookie
- RABBITMQ_NODENAME=rabbitmq
test:
build: .
links: ["rabbitmq", "elasticsearch"]
environment:
- ELASTICSEARCH_URL=http://elasticsearch:9200
- RABBITMQ_URL=amqp://rabbitmq:5672//?heartbeat=10
- GOOGLE_API_KEY=some-api-key
- CERTS_PATH=./push-notification-service-data
- NODE_ENV=development
- TEST_MODE=true
command: npm run test
# example
service:
build: .
links: ["rabbitmq", "elasticsearch"]
environment:
- ELASTICSEARCH_URL=http://elasticsearch:9200
- RABBITMQ_URL=amqp://rabbitmq:5672//?heartbeat=10
- GOOGLE_API_KEY="${GOOGLE_API_KEY}"
- CERTS_PATH=./push-notification-service-data
- NODE_ENV=development
- DEBUG=node-gcm
command: coffee src/service.coffee