pizza1-configs/docker/replace-compose

5 lines
281 B
Plaintext
Raw Normal View History

2023-04-16 16:05:37 +05:30
#!/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 -