pizza1-configs/docker/replace-compose
2023-04-16 03:35:37 -07:00

5 lines
281 B
Bash
Executable File

#!/bin/bash
mv /opt/docker/${1}/*compose.y*l /opt/docker/${1}/compose.pre-public-conf.yml
ln -s /configs/docker/${1}-compose.yml /opt/docker/${1}/compose.yml
cd /opt/docker/${1} && docker compose pull && docker compose down --remove-orphans && docker compose up -d --build && cd -