Skip to content

Commit c3620e9

Browse files
StefanT123lanphan
authored andcommitted
Volumes are created on every docker start (laradock#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.
1 parent 4e5a142 commit c3620e9

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

docker-compose.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ volumes:
4747
driver: ${VOLUMES_DRIVER}
4848
cassandra:
4949
driver: ${VOLUMES_DRIVER}
50+
graylog:
51+
driver: ${VOLUMES_DRIVER}
52+
dind:
53+
driver: ${VOLUMES_DRIVER}
5054

5155
services:
5256

@@ -503,6 +507,7 @@ services:
503507
- "${MONGODB_PORT}:27017"
504508
volumes:
505509
- ${DATA_PATH_HOST}/mongo:/data/db
510+
- ${DATA_PATH_HOST}/mongo_config:/data/configdb
506511
networks:
507512
- backend
508513

@@ -936,9 +941,9 @@ services:
936941
- ${GRAYLOG_GELF_TCP_PORT}:12201
937942
# GELF UDP
938943
- ${GRAYLOG_GELF_UDP_PORT}:12201/udp
939-
user: root
944+
user: graylog
940945
volumes:
941-
- ./graylog/config:/usr/share/graylog/data/config
946+
- ${DATA_PATH_HOST}/graylog:/usr/share/graylog/data
942947
networks:
943948
- backend
944949

@@ -1218,6 +1223,7 @@ services:
12181223
privileged: true
12191224
volumes:
12201225
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
1226+
- ${DATA_PATH_HOST}/dind:/var/lib/docker
12211227
expose:
12221228
- 2375
12231229
networks:

0 commit comments

Comments
 (0)