Skip to content

Commit

Permalink
[fix] Updated #274
Browse files Browse the repository at this point in the history
Fixes 274
  • Loading branch information
praptisharma28 committed Jun 1, 2024
1 parent cfe8da0 commit bf3f8e1
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ services:
dockerfile: Dockerfile
ports:
- "8000:8000"
- "8089:8089/udp"
- "8090:8090/udp"
- "8091:8091/udp"
- "8092:8092/udp"
depends_on:
- influxdb
- influxdb2
- redis

influxdb:
Expand All @@ -20,25 +23,15 @@ services:
- ./tests/influxdb.conf:/etc/influxdb/influxdb.conf
ports:
- "8086:8086"
- "8089:8089/udp"
- "8090:8090/udp"
- "8091:8091/udp"
- "8092:8092/udp"
environment:
INFLUXDB_DB: openwisp2
INFLUXDB_USER: openwisp
INFLUXDB_USER_PASSWORD: openwisp

influxdb2:
image: influxdb:2.0-alpine
volumes:
- influxdb2-data:/var/lib/influxdb2
ports:
- "8087:8087"
environment:
DOCKER_INFLUXDB_INIT_MODE: setup
DOCKER_INFLUXDB_INIT_USERNAME: openwisp
DOCKER_INFLUXDB_INIT_PASSWORD: openwisp
DOCKER_INFLUXDB_INIT_ORG: openwisp
DOCKER_INFLUXDB_INIT_BUCKET: openwisp2
DOCKER_INFLUXDB_INIT_RETENTION: 1w

redis:
image: redis:5.0-alpine
ports:
Expand All @@ -47,4 +40,3 @@ services:

volumes:
influxdb-data: {}
influxdb2-data: {}

0 comments on commit bf3f8e1

Please sign in to comment.