mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-18 07:52:23 +01:00
setup script for docker installation
This commit is contained in:
parent
5a28b1127f
commit
fea78f2995
23
docker/setup.sh
Normal file
23
docker/setup.sh
Normal file
@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
prepare_config()
|
||||
{
|
||||
FABMANAGER_PATH = ${1:-/apps/fabmanager/config}
|
||||
|
||||
mkdir -p "$FABMANAGER_PATH/example"
|
||||
|
||||
# fab-manager environment variables
|
||||
\curl -sSL https://raw.githubusercontent.com/LaCasemate/fab-manager/master/docker/env.example > "$FABMANAGER_PATH/example/env.example"
|
||||
|
||||
# nginx configuration
|
||||
\curl -sSL https://raw.githubusercontent.com/LaCasemate/fab-manager/master/docker/nginx_with_ssl.conf.example > "$FABMANAGER_PATH/example/nginx_with_ssl.conf.example"
|
||||
\curl -sSL https://raw.githubusercontent.com/LaCasemate/fab-manager/master/docker/nginx.conf.example > "$FABMANAGER_PATH/example/nginx.conf.example"
|
||||
|
||||
# let's encrypt configuration
|
||||
\curl -sSL https://raw.githubusercontent.com/LaCasemate/fab-manager/master/docker/webroot.ini.example > "$FABMANAGER_PATH/example/webroot.ini.example"
|
||||
|
||||
# docker-compose
|
||||
\curl -sSL https://github.com/LaCasemate/fab-manager/blob/master/docker/docker-compose.yml > "$FABMANAGER_PATH/docker-compose.yml"
|
||||
}
|
||||
|
||||
prepare_config "$@"
|
Loading…
x
Reference in New Issue
Block a user