startall.sh now updates and prunes
This commit is contained in:
parent
f8f8732e38
commit
a1905b0e44
2 changed files with 13 additions and 1 deletions
11
gitlab.yml
11
gitlab.yml
|
@ -23,7 +23,7 @@ services:
|
||||||
- DB_NAME=gitlabhq_production
|
- DB_NAME=gitlabhq_production
|
||||||
- DB_EXTENSION=pg_trgm,btree_gist
|
- DB_EXTENSION=pg_trgm,btree_gist
|
||||||
|
|
||||||
gitlab:
|
gitlab: # https://github.com/sameersbn/docker-gitlab
|
||||||
restart: always
|
restart: always
|
||||||
image: sameersbn/gitlab:16.10.2
|
image: sameersbn/gitlab:16.10.2
|
||||||
container_name: gitlab
|
container_name: gitlab
|
||||||
|
@ -88,6 +88,15 @@ services:
|
||||||
- SMTP_PASS=${SMTP_PASS}
|
- SMTP_PASS=${SMTP_PASS}
|
||||||
- SMTP_STARTTLS=true
|
- SMTP_STARTTLS=true
|
||||||
|
|
||||||
|
- OAUTH_ENABLED=false
|
||||||
|
- OAUTH_EXTERNAL_PROVIDERS=github,gitlab
|
||||||
|
|
||||||
|
- OAUTH_GITHUB_API_KEY=${GL_GITHUB_API_KEY}
|
||||||
|
- OAUTH_GITHUB_APP_SECRET=${GL_GITHUB_API_SECRET}
|
||||||
|
|
||||||
|
- OAUTH_GITLAB_API_KEY=${GL_GITLAB_API_KEY}
|
||||||
|
- OAUTH_GITLAB_APP_SECRET=${GL_GITLAB_API_SECRET}
|
||||||
|
|
||||||
# - LDAP_ENABLED=true
|
# - LDAP_ENABLED=true
|
||||||
# - LDAP_LABEL=LDAP
|
# - LDAP_LABEL=LDAP
|
||||||
# - LDAP_HOST=${LDAP_SERVER}
|
# - LDAP_HOST=${LDAP_SERVER}
|
||||||
|
|
|
@ -4,5 +4,8 @@ script_root="$( dirname $0 )"
|
||||||
|
|
||||||
for y in "${script_root}"/*.yml;do
|
for y in "${script_root}"/*.yml;do
|
||||||
by="$(basename $y)"
|
by="$(basename $y)"
|
||||||
|
sudo docker-compose -f "${y}" pull
|
||||||
sudo docker-compose -f "${y}" -p "${by}" up -d
|
sudo docker-compose -f "${y}" -p "${by}" up -d
|
||||||
done
|
done
|
||||||
|
|
||||||
|
sudo docker image prune -f
|
||||||
|
|
Loading…
Add table
Reference in a new issue