Created
August 31, 2019 20:23
-
-
Save calvernaz/e2c37f7c4add34848e9bd16c944c75a8 to your computer and use it in GitHub Desktop.
LoRa Server stack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2.2' | |
services: | |
mysql: | |
container_name: mysql | |
image: bitnami/mysql:latest | |
environment: | |
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD} | |
- MYSQL_USER=admin | |
- MYSQL_PASSWORD=${MYSQL_PASSWORD} | |
- MYSQL_DATABASE=livedata | |
ports: | |
- 3306:3306 | |
expose: | |
- 3306 | |
networks: | |
- livedatanet | |
volumes: | |
- mysqldata:/var/lib/mysql | |
restart: always | |
flyway: | |
image: boxfuse/flyway:5.2.4 | |
environment: | |
- FLYWAY_PASSWORD=${MYSQL_ROOT_PASSWORD} | |
command: -url=jdbc:mysql://mysql -schemas=test -user=root -connectRetries=60 migrate | |
volumes: | |
- ./db/scripts/:/flyway/sql | |
depends_on: | |
- mysql | |
networks: | |
- livedatanet | |
redis: | |
container_name: redis | |
image: bitnami/redis:latest | |
environment: | |
- REDIS_PASSWORD=${REDIS_PASSWORD} | |
networks: | |
- livedatanet | |
sysctls: | |
net.core.somaxconn: '511' | |
volumes: | |
- redisdata:/data | |
restart: always | |
loraserver: | |
image: loraserver/loraserver:${LORA_VERSION} | |
container_name: lora-server | |
networks: | |
- livedatanet | |
volumes: | |
- ./configuration/loraserver:/etc/loraserver | |
appserver: | |
image: loraserver/lora-app-server:${LORA_VERSION} | |
container_name: lora-app-server | |
networks: | |
- livedatanet | |
ports: | |
- 9080:8080 | |
volumes: | |
- ./configuration/lora-app-server:/etc/lora-app-server | |
gatewaybridge: | |
image: loraserver/lora-gateway-bridge:${LORA_VERSION} | |
container_name: gateway-bridge | |
networks: | |
- livedatanet | |
ports: | |
- 1700:1700/udp | |
environment: | |
- INTEGRATION.MQTT.AUTH.GENERIC.SERVER=tcp://mosquitto:1883 | |
- INTEGRATION.MQTT.AUTH.GENERIC.USERNAME=livesense | |
- INTEGRATION.MQTT.AUTH.GENERIC.PASSWORD=${MQTT_PASSWORD} | |
volumes: | |
- ./configuration/lora-gateway-bridge:/etc/lora-gateway-bridge | |
geoserver: | |
image: loraserver/lora-geo-server:${LORA_VERSION} | |
container_name: lora-geo-server | |
environment: | |
- GEO_SERVER.BACKEND.NAME=collos | |
networks: | |
- livedatanet | |
volumes: | |
- ./configuration/lora-geo-server:/etc/lora-geo-server | |
postgresql: | |
image: postgres:9.6-alpine | |
container_name: postgresql | |
networks: | |
- livedatanet | |
volumes: | |
- ./configuration/postgresql/initdb:/docker-entrypoint-initdb.d | |
- postgresqldata:/var/lib/postgresql/data | |
mosquitto: | |
image: eclipse-mosquitto | |
container_name: mosquitto | |
networks: | |
- livedatanet | |
ports: | |
- 1883:1883 | |
volumes: | |
- ./configuration/mosquitto:/mosquitto/config | |
networks: | |
livedatanet: | |
volumes: | |
mysqldata: | |
redisdata: | |
postgresqldata: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment