add entrypoint script
This commit is contained in:
parent
a5f2d2f600
commit
a504c62a23
@ -8,6 +8,7 @@ DOMAIN=gitlab.example.com
|
||||
LETS_ENCRYPT_ENV=production
|
||||
|
||||
GITLAB_CONF_VERSION=v1
|
||||
ENTRYPOINT_VERSION=v1
|
||||
|
||||
GITLAB_ROOT_EMAIL="gitlab_admin@example.com"
|
||||
SECRET_INITIAL_ROOT_PASSWORD_VERSION=v1
|
||||
|
10
compose.yml
10
compose.yml
@ -9,7 +9,11 @@ services:
|
||||
- internal
|
||||
configs:
|
||||
- source: gitlab_conf
|
||||
target: /etc/gitlab/gitlab.rb
|
||||
target: /gitlab.rb
|
||||
- source: entrypoint
|
||||
target: /entrypoint.sh
|
||||
entrypoint:
|
||||
/entrypoint.sh
|
||||
volumes:
|
||||
- 'gitlabconfig:/etc/gitlab'
|
||||
- 'gitlablogs:/var/log/gitlab'
|
||||
@ -54,6 +58,10 @@ configs:
|
||||
name: ${STACK_NAME}_gitlab_conf_${GITLAB_CONF_VERSION}
|
||||
file: gitlab.rb.tmpl
|
||||
template_driver: golang
|
||||
entrypoint:
|
||||
name: ${STACK_NAME}_entrypoint_${ENTRYPOINT_VERSION}
|
||||
file: entrypoint.sh.tmpl
|
||||
template_driver: golang
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
|
5
entrypoint.sh.tmpl
Normal file
5
entrypoint.sh.tmpl
Normal file
@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
cp /gitlab.rb /etc/gitlab/gitlab.rb
|
||||
|
||||
"$@"
|
Loading…
x
Reference in New Issue
Block a user