Volumes are created on every docker start (#2247)
* Added graylog to the list of softwares. * Added persistent volumes for docker-in-docker and graylog. Added volume for mongo configdb. These services were making volumes on every start, so we might end up with many unnecessary volumes. With this pull request this issue is resolved.
This commit is contained in:
parent
4e5a142c9d
commit
c3620e95c8
|
@ -47,6 +47,10 @@ volumes:
|
||||||
driver: ${VOLUMES_DRIVER}
|
driver: ${VOLUMES_DRIVER}
|
||||||
cassandra:
|
cassandra:
|
||||||
driver: ${VOLUMES_DRIVER}
|
driver: ${VOLUMES_DRIVER}
|
||||||
|
graylog:
|
||||||
|
driver: ${VOLUMES_DRIVER}
|
||||||
|
dind:
|
||||||
|
driver: ${VOLUMES_DRIVER}
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
|
@ -503,6 +507,7 @@ services:
|
||||||
- "${MONGODB_PORT}:27017"
|
- "${MONGODB_PORT}:27017"
|
||||||
volumes:
|
volumes:
|
||||||
- ${DATA_PATH_HOST}/mongo:/data/db
|
- ${DATA_PATH_HOST}/mongo:/data/db
|
||||||
|
- ${DATA_PATH_HOST}/mongo_config:/data/configdb
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
|
|
||||||
|
@ -936,9 +941,9 @@ services:
|
||||||
- ${GRAYLOG_GELF_TCP_PORT}:12201
|
- ${GRAYLOG_GELF_TCP_PORT}:12201
|
||||||
# GELF UDP
|
# GELF UDP
|
||||||
- ${GRAYLOG_GELF_UDP_PORT}:12201/udp
|
- ${GRAYLOG_GELF_UDP_PORT}:12201/udp
|
||||||
user: root
|
user: graylog
|
||||||
volumes:
|
volumes:
|
||||||
- ./graylog/config:/usr/share/graylog/data/config
|
- ${DATA_PATH_HOST}/graylog:/usr/share/graylog/data
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
|
|
||||||
|
@ -1218,6 +1223,7 @@ services:
|
||||||
privileged: true
|
privileged: true
|
||||||
volumes:
|
volumes:
|
||||||
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
|
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
|
||||||
|
- ${DATA_PATH_HOST}/dind:/var/lib/docker
|
||||||
expose:
|
expose:
|
||||||
- 2375
|
- 2375
|
||||||
networks:
|
networks:
|
||||||
|
|
Loading…
Reference in New Issue