mirror of
https://github.com/ClusterCockpit/cc-docker.git
synced 2024-11-10 12:37:25 +01:00
Add volume directives for persistent databases.
This commit is contained in:
parent
8b9f758299
commit
4fa06943b9
@ -9,6 +9,7 @@ services:
|
|||||||
MYSQL_USER: symfony
|
MYSQL_USER: symfony
|
||||||
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
|
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
|
||||||
volumes:
|
volumes:
|
||||||
|
# - ${DATADIR}/sql:/var/lib/mysql
|
||||||
- ${DATADIR}/sql:/docker-entrypoint-initdb.d
|
- ${DATADIR}/sql:/docker-entrypoint-initdb.d
|
||||||
|
|
||||||
influxdb:
|
influxdb:
|
||||||
@ -25,6 +26,9 @@ services:
|
|||||||
DOCKER_INFLUXDB_INIT_BUCKET: ClusterCockpit
|
DOCKER_INFLUXDB_INIT_BUCKET: ClusterCockpit
|
||||||
DOCKER_INFLUXDB_INIT_RETENTION: 2w
|
DOCKER_INFLUXDB_INIT_RETENTION: 2w
|
||||||
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: ${INFLUXDB_ADMIN_TOKEN}
|
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: ${INFLUXDB_ADMIN_TOKEN}
|
||||||
|
# volumes:
|
||||||
|
# - ${DATADIR}/influxdb/data:/var/lib/influxdb2
|
||||||
|
# - ${DATADIR}/influxdb/config:/etc/influxdb2
|
||||||
|
|
||||||
php:
|
php:
|
||||||
container_name: php-fpm
|
container_name: php-fpm
|
||||||
|
Loading…
Reference in New Issue
Block a user