mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-25 22:21:04 +01:00
Compare commits
No commits in common. "6ab941c71886bd941e59be2c3e4648274e8c03af" and "15e142ddc4f238a626f35b027baefbd2abc7b4c3" have entirely different histories.
6ab941c718
...
15e142ddc4
@ -36,6 +36,3 @@ For a detailed walkthrough and explanation of this role, refer to the conversati
|
|||||||
|
|
||||||
## Further Information
|
## Further Information
|
||||||
- https://ralph.blog.imixs.com/2019/06/09/running-gitlab-on-docker/
|
- https://ralph.blog.imixs.com/2019/06/09/running-gitlab-on-docker/
|
||||||
|
|
||||||
## Performance Optimation
|
|
||||||
- https://techoverflow.net/2020/04/18/how-i-reduced-gitlab-memory-consumption-in-my-docker-based-setup/
|
|
||||||
|
@ -22,8 +22,7 @@ for volume in $anonymous_volumes; do
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
((status++))
|
status=1
|
||||||
|
|
||||||
container_ids=$(docker ps -aq --filter volume=$volume)
|
container_ids=$(docker ps -aq --filter volume=$volume)
|
||||||
if [ -z "$container_ids" ]; then
|
if [ -z "$container_ids" ]; then
|
||||||
echo "Volume $volume is not used by any running containers."
|
echo "Volume $volume is not used by any running containers."
|
||||||
@ -42,4 +41,12 @@ for volume in $anonymous_volumes; do
|
|||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Additional warning for dangling volumes
|
||||||
|
dangling_volumes=$(docker volume ls -f dangling=true --format "{{.Name}}")
|
||||||
|
if [ -n "$dangling_volumes" ]; then
|
||||||
|
status=2
|
||||||
|
echo "The following dangling volumes were found:"
|
||||||
|
echo "$dangling_volumes"
|
||||||
|
fi
|
||||||
|
|
||||||
exit $status
|
exit $status
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
- POSTGRES_PASSWORD={{database_password}}
|
- POSTGRES_PASSWORD={{database_password}}
|
||||||
- POSTGRES_USER={{database_username}}
|
- POSTGRES_USER={{database_username}}
|
||||||
- POSTGRES_DB={{database_databasename}}
|
- POSTGRES_DB={{database_databasename}}
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U {{database_databasename}}"]
|
test: ["CMD-SHELL", "pg_isready -U {{database_databasename}}"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
|
Loading…
Reference in New Issue
Block a user