add gitlab.yml

This commit is contained in:
l 2024-06-24 12:41:00 +05:00
parent f8b07a47a8
commit 6ed21a40cf
3 changed files with 26 additions and 2 deletions

2
dev.sh
View File

@ -1 +1 @@
docker compose --env-file .env.dev -f docker-compose.yml up
docker compose --env-file .env.dev -f traefik.yml up

19
gitlab.yml Normal file
View File

@ -0,0 +1,19 @@
services:
gitlab:
image: gitlab/gitlab-ce:17.1.0-ce.0
container_name: gitlab
restart: always
hostname: 'gitlab.corp.hm'
environment:
GITLAB_OMNIBUS_CONFIG: |
# Add any other gitlab.rb configuration here, each on its own line
external_url 'https://gitlab.corp.hm'
ports:
- '80:80'
- '443:443'
- '22:22'
volumes:
- '$GITLAB_HOME/config:/etc/gitlab'
- '$GITLAB_HOME/logs:/var/log/gitlab'
- '$GITLAB_HOME/data:/var/opt/gitlab'
shm_size: '256m'

View File

@ -20,7 +20,7 @@ services:
- '--log=true'
#- "--log.level=INFO"
- "--providers.docker.exposedByDefault=false"
- "--providers.docker.network=server_proxynet"
- "--providers.docker.network=proxynet"
#Entrypoints:
- "--entrypoints.http.address=:80"
- "--entrypoints.https.address=:443"
@ -55,3 +55,8 @@ services:
driver: "json-file"
options:
max-size: "1m"
networks:
proxynet:
driver: bridge
external: false