appstore-1panel/apps/influxdb/2.7.10/docker-compose.yml

23 lines
695 B
YAML
Raw Normal View History

2024-08-13 13:56:49 +08:00
services:
influxdb:
image: influxdb:2.7.10
2024-08-13 13:56:49 +08:00
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