forked from anthill/pheromon
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompose-test.yml
70 lines (66 loc) · 1.58 KB
/
compose-test.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
api:
build: ./
command: node api/api.js
links:
- db
- broker
environment:
- VIRTUAL_PORT=4000
- BROKER_PORT=1883
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=elements
- PGPASSWORD=elements
- NODE_ENV=test
# Updater variables
- UPDATER_RANGE_START=2200
- UPDATER_RANGE_SIZE=10
- UPDATER_PLAYBOOK_FOLDER="/pheromon/updateFiles/"
- UPDATER_SENSORS_PORT=9632
- NODE_TLS_REJECT_UNAUTHORIZED=0
volumes:
- ./:/pheromon
# Ansible playbooks for the updater
#- ./updateFiles/:/pheromon/updateFiles/:ro
# SSH configuration
#- /home/sensorSSH/.ssh/id_rsa:/root/.ssh/id_rsa:ro
#- /home/sensorSSH/.ssh/id_rsa.pub:/root/.ssh/id_rsa.pub:ro
#- /home/sensorSSH/.ssh/known_hosts:/root/.ssh/known_hosts
#- /etc/ssh/ssh_config:/etc/ssh/ssh_config:ro
tty: true
log_driver: "none"
broker:
build: .
command: node broker/index.js
links:
- db
- redis
environment:
- BROKER_PORT=1883
- NODE_ENV=test
volumes:
- ./:/pheromon
log_driver: "none"
db:
image: postgres:9.4
environment:
- NODE_ENV=test
log_driver: "none"
redis:
image: redis:3
log_driver: "none"
tests:
build: .
command: node ./tests/index.js
links:
- api
- broker
- db
environment:
- BROKER_PORT=1883
- POSTGRES_USER=postgres
- PGPASSWORD=elements # don't change the name of the variable for pg_dump
- POSTGRES_PASSWORD=elements
- NODE_ENV=test
volumes:
- ./:/pheromon/
tty: true