add entrypoint script
This commit is contained in:
parent
a5f2d2f600
commit
a504c62a23
@ -8,6 +8,7 @@ DOMAIN=gitlab.example.com
|
|||||||
LETS_ENCRYPT_ENV=production
|
LETS_ENCRYPT_ENV=production
|
||||||
|
|
||||||
GITLAB_CONF_VERSION=v1
|
GITLAB_CONF_VERSION=v1
|
||||||
|
ENTRYPOINT_VERSION=v1
|
||||||
|
|
||||||
GITLAB_ROOT_EMAIL="gitlab_admin@example.com"
|
GITLAB_ROOT_EMAIL="gitlab_admin@example.com"
|
||||||
SECRET_INITIAL_ROOT_PASSWORD_VERSION=v1
|
SECRET_INITIAL_ROOT_PASSWORD_VERSION=v1
|
||||||
|
10
compose.yml
10
compose.yml
@ -9,7 +9,11 @@ services:
|
|||||||
- internal
|
- internal
|
||||||
configs:
|
configs:
|
||||||
- source: gitlab_conf
|
- source: gitlab_conf
|
||||||
target: /etc/gitlab/gitlab.rb
|
target: /gitlab.rb
|
||||||
|
- source: entrypoint
|
||||||
|
target: /entrypoint.sh
|
||||||
|
entrypoint:
|
||||||
|
/entrypoint.sh
|
||||||
volumes:
|
volumes:
|
||||||
- 'gitlabconfig:/etc/gitlab'
|
- 'gitlabconfig:/etc/gitlab'
|
||||||
- 'gitlablogs:/var/log/gitlab'
|
- 'gitlablogs:/var/log/gitlab'
|
||||||
@ -54,6 +58,10 @@ configs:
|
|||||||
name: ${STACK_NAME}_gitlab_conf_${GITLAB_CONF_VERSION}
|
name: ${STACK_NAME}_gitlab_conf_${GITLAB_CONF_VERSION}
|
||||||
file: gitlab.rb.tmpl
|
file: gitlab.rb.tmpl
|
||||||
template_driver: golang
|
template_driver: golang
|
||||||
|
entrypoint:
|
||||||
|
name: ${STACK_NAME}_entrypoint_${ENTRYPOINT_VERSION}
|
||||||
|
file: entrypoint.sh.tmpl
|
||||||
|
template_driver: golang
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
proxy:
|
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