appstore-1panel/apps/influxdb/2.7.9/docker-compose.yml
2024-08-13 13:56:49 +08:00

23 lines
694 B
YAML

services:
influxdb:
image: influxdb:2.7.9
container_name: ${CONTAINER_NAME}
restart: always
ports:
- ${PANEL_APP_PORT_HTTP}:8086
volumes:
- ./data/data:/var/lib/influxdb2
- ./data/config:/etc/influxdb2
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=${DOCKER_INFLUXDB_INIT_USERNAME}
- DOCKER_INFLUXDB_INIT_PASSWORD=${DOCKER_INFLUXDB_INIT_PASSWORD}
- DOCKER_INFLUXDB_INIT_ORG=${DOCKER_INFLUXDB_INIT_ORG}
- DOCKER_INFLUXDB_INIT_BUCKET=${DOCKER_INFLUXDB_INIT_BUCKET}
networks:
- 1panel-network
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true