-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-test.yml
99 lines (93 loc) · 2.42 KB
/
docker-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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# Copyright 2020 Edouard Maleix, read LICENSE
version: '3.7'
networks:
aloes:
driver: bridge
services:
influxdb:
container_name: influxdb
image: influxdb:1.7-alpine
environment:
- INFLUXDB_ADMIN_ENABLED=false
- INFLUXDB_DB=aloes_test
- INFLUXDB_USER=aloes
- INFLUXDB_USER_PASSWORD=example
networks:
- aloes
nats:
image: nats:latest
container_name: nats
restart: always
networks:
- aloes
timer-1:
image: quay.io/esatterwhite/skyring
container_name: timer-1
hostname: timer-1
environment:
- NODE_ENV=test
- DEBUG=skyring:*
- channel__host=timer-1
- nats__hosts=nats:4222
- seeds=timer-1:3455
- storage__backend=leveldown
- storage__path=/var/data/skyring
restart: always
depends_on:
- nats
networks:
- aloes
api:
environment:
- CI=true
- NODE_ENV=development
- NODE_NAME=device-manager
- ALOES_ID=${ALOES_ID}
- ALOES_KEY=${ALOES_KEY}
- DOMAIN=localhost
- HTTP_SERVER_URL=http://api:8000
- HTTP_CLIENT_URL=http://localhost:8080
- HTTP_SERVER_HOST=0.0.0.0
- HTTP_SERVER_PORT=8000
- REST_API_ROOT=/api
- COOKIE_SECRET=246bace2-38cb-1954-2481-ebc12531
- MQTT_BROKER_URL=mqtt://api:1883
- MQTT_BROKER_PORT=1883
- WS_BROKER_PORT=3000
- SERVER_LOGGER_LEVEL=2
- SMTP_HOST=${SMTP_HOST}
- SMTP_PORT=${SMTP_PORT}
- SMTP_SECURE=${SMTP_SECURE}
- SMTP_USER=${SMTP_USER}
- SMTP_PASS=${SMTP_PASS}
- INFLUXDB_ADMIN_ENABLED=false
- INFLUXDB_PROTOCOL=http
- INFLUXDB_HOST=influxdb
- INFLUXDB_PORT=8086
- INFLUXDB_DB=aloes_test
- INFLUXDB_USER=aloes
- INFLUXDB_USER_PASSWORD=example
- EXTERNAL_TIMER=true
- TIMER_SERVER_URL=http://timer-1:3000/timer
- OCD_API_KEY=${OCD_API_KEY}
- FS_PATH=../storage
- GITHUB_CLIENT_ID_LOGIN=
- GITHUB_CLIENT_SECRET_LOGIN=
- GITHUB_CLIENT_ID_LINK=
- GITHUB_CLIENT_SECRET_LINK=
- [email protected]:aloes/device-manager.git
- INSTANCES_COUNT=1
container_name: api
build:
context: .
dockerfile: ./config/docker/test.dockerfile
ports:
- '8000:8000'
- '1883:1883'
depends_on:
- timer-1
- influxdb
networks:
- aloes