add entrypoint script

This commit is contained in:
marlon 2024-10-02 15:42:11 -04:00
parent a5f2d2f600
commit a504c62a23
3 changed files with 15 additions and 1 deletions

View File

@ -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

View File

@ -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
View File

@ -0,0 +1,5 @@
#!/bin/sh
cp /gitlab.rb /etc/gitlab/gitlab.rb
"$@"