configure envs
This commit is contained in:
parent
7b116c1541
commit
a867645694
3 changed files with 30 additions and 1 deletions
2
configure
vendored
2
configure
vendored
|
@ -26,5 +26,5 @@ chmod -x photo/docker-compose.pigallery.yml
|
|||
# A/ local testing
|
||||
chmod -x traefik/docker-compose.traefik.yml
|
||||
|
||||
# B/ live
|
||||
# B/ live server
|
||||
chmod -x traefik/docker-compose.traefik-local.yml
|
||||
|
|
19
set_perms_local
Executable file
19
set_perms_local
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/bin/bash
|
||||
|
||||
export DOCKER_COMPOSE_BIN='/usr/local/bin/docker-compose'
|
||||
docker-compose ()
|
||||
{
|
||||
$DOCKER_COMPOSE_BIN $(find -name 'docker-compose*.yml' -type f -perm -u+x -printf '%p\t%d\n' 2>/dev/null | sort -n -k2 | cut -f 1 | awk '{print "-f "$0}') $@
|
||||
}
|
||||
|
||||
# ===========================================================================
|
||||
# Configure
|
||||
|
||||
# disable unused services
|
||||
chmod -x baikal/docker-compose.baikal.yml
|
||||
chmod -x posteio/docker-compose.posteio.yml
|
||||
chmod -x netdata/docker-compose.netdata.yml
|
||||
chmod -x photo/docker-compose.pigallery.yml
|
||||
|
||||
# local testing
|
||||
chmod -x traefik/docker-compose.traefik.yml
|
10
set_perms_server
Executable file
10
set_perms_server
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
# disable unused services
|
||||
chmod -x baikal/docker-compose.baikal.yml
|
||||
chmod -x posteio/docker-compose.posteio.yml
|
||||
chmod -x netdata/docker-compose.netdata.yml
|
||||
chmod -x photo/docker-compose.pigallery.yml
|
||||
|
||||
# live server
|
||||
chmod -x traefik/docker-compose.traefik-local.yml
|
Loading…
Add table
Reference in a new issue