Improve docker performance with `delegated` mount flag (#5760)
This commit is contained in:
parent
8a40a1d50a
commit
3e7638e3f5
|
@ -38,7 +38,7 @@ echo "Using data in: ${DATA_DIR}"
|
||||||
|
|
||||||
mkdir -p "${DATA_DIR}"
|
mkdir -p "${DATA_DIR}"
|
||||||
|
|
||||||
docker run -d -p 1080:1080 -p 3000:3000 -v "$DATA_DIR:/shared/postgres_data" -v "$SOURCE_DIR:/src" --hostname=discourse --name=discourse_dev --restart=always discourse/discourse_dev:release /sbin/boot
|
docker run -d -p 1080:1080 -p 3000:3000 -v "$DATA_DIR:/shared/postgres_data:delegated" -v "$SOURCE_DIR:/src:delegated" --hostname=discourse --name=discourse_dev --restart=always discourse/discourse_dev:release /sbin/boot
|
||||||
|
|
||||||
if [ "${initialize}" = "initialize" ]; then
|
if [ "${initialize}" = "initialize" ]; then
|
||||||
echo "Installing gems..."
|
echo "Installing gems..."
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
docker rm -f discourse_dev
|
docker stop discourse_dev && docker rm discourse_dev
|
||||||
|
|
Loading…
Reference in New Issue