forked from brocaar/chirpstack-application-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
34 lines (31 loc) · 882 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
version: "2"
services:
appserver:
build:
context: .
dockerfile: Dockerfile-devel
command: make serve
volumes:
- ./:/go/src/github.com/brocaar/lora-app-server
links:
- postgres
- redis
- mosquitto
environment:
- DB_AUTOMIGRATE=true
- POSTGRES_DSN=postgres://loraserver:loraserver@postgres/loraserver?sslmode=disable
- REDIS_URL=redis://redis:6379
- MQTT_SERVER=tcp://mosquitto:1883
- TEST_POSTGRES_DSN=postgres://loraserver:loraserver@postgres/loraserver?sslmode=disable
- TEST_REDIS_URL=redis://redis:6379
- TEST_MQTT_SERVER=tcp://mosquitto:1883
postgres:
image: postgres:9.5
environment:
- POSTGRES_PASSWORD=loraserver
- POSTGRES_USER=loraserver
- POSTGRES_DB=loraserver
redis:
image: redis:3.0.7-alpine
mosquitto:
image: ansi/mosquitto