chirpstack/docker-compose.yml
Orne Brocaar 7309a35a3b Update configuration files with env. variables.
This makes it possible to use the config examples with Docker Compose
(where every service has its own hostname) and to use it for packaging
(where by default the services are running under localhost).
2022-04-23 11:25:40 +01:00

42 lines
924 B
YAML

services:
chirpstack:
image: chirpstack/chirpstack-dev-cache:latest
volumes:
- ./:/chirpstack
depends_on:
- postgres
- redis
- mosquitto
environment:
- DATABASE_URL=postgres://chirpstack_test:chirpstack_test@postgres/chirpstack_test?sslmode=disable
- REDIS_HOST=redis
- POSTGRESQL_HOST=postgres
- MQTT_BROKER_HOST=mosquitto
ports:
- "8080:8080"
chirpstack-ui:
build:
context: ./ui
dockerfile: Dockerfile-devel
volumes:
- ./api/grpc-web:/chirpstack/api/grpc-web
- ./ui:/chirpstack/ui
ports:
- "3000:3000"
postgres:
image: postgres:11-alpine
volumes:
- ./.docker-compose/postgresql/initdb:/docker-entrypoint-initdb.d
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
redis:
image: redis:6-alpine
mosquitto:
image: eclipse-mosquitto:1.6
ports:
- "1883:1883"