mirror of
https://github.com/deadcxap/init_scripts.git
synced 2026-07-02 05:43:40 +03:00
add bootstrap compose and init scrypt
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
N=$(awk '/^networks:/,/^[^[:space:]]/{if($1=="name:"){print $2; exit}}' docker-compose.yml); N=${N:-proxy}
|
||||
docker network inspect "$N" >/dev/null 2>&1 || docker network create --driver bridge --attachable "$N"
|
||||
docker compose up -d --build
|
||||
Reference in New Issue
Block a user