AspireCloud/bin/remove-external-network.sh
Chuck Adams ee312f2882
add traefik proxy and frankenphp service as alternative to fpm (#17)
* refactor: replace nginx with frankenphp

* fix: add git and zip to the docker image

* refactor: parameterize bin/{create,remove}-external-network.sh

+resilience in remove script

* feat: add traefik proxy

* feat: add traefik-up and traefik-down Makefile targets

* doc: add traefik section to README

* doc: fix thinko

* docs: update traefik README

add note that you still need to edit /etc/hosts

* refactor: docker-compose configs for both nginx and frankenphp

* fix: use correct path to Dockerfile in docker-compose.frankenphp.yml

* feat: switch web backends via environment var (default nginx)
2024-10-16 07:54:20 -06:00

11 lines
251 B
Bash
Executable file

#!/usr/bin/env bash
set -o errexit
# Remove network if it exists
network_name=${1?no network name specified}
if docker network inspect "$network_name" &> /dev/null; then
docker network rm "$network_name"
echo "Removed network $network_name"
fi