mirror of
https://github.com/chirpstack/chirpstack.git
synced 2024-12-20 21:53:11 +00:00
7309a35a3b
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).
42 lines
924 B
YAML
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"
|