Skip to content

Instantly share code, notes, and snippets.

@vishnusomanus
Created November 11, 2024 09:35
Show Gist options
  • Save vishnusomanus/1e37fc4ac0b9d7d7d35df27eb71feedb to your computer and use it in GitHub Desktop.
Save vishnusomanus/1e37fc4ac0b9d7d7d35df27eb71feedb to your computer and use it in GitHub Desktop.
gitlab community edition docker
version: '3.7'
services:
gitlab:
image: gitlab/gitlab-ce:latest
container_name: gitlab
restart: always
hostname: pm.techversantinfotech.com
ports:
- "443:443"
- "8080:80"
- "22:22"
volumes:
- /d/gitlab/backups:/var/opt/gitlab/backups
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- /d/gitlab/data:/var/opt/gitlab
- /d/gitlab/logs:/var/log/gitlab
- /d/gitlab/config:/etc/gitlab
environment:
- TZ=Asia/Kolkata
- GITLAB_ROOT_PASSWORD=Pwd4git!23
entrypoint: ["/bin/bash", "-c", "apt-get update && apt-get install -y cron nano && echo '0 8 * * * /opt/gitlab/bin/gitlab-rake gitlab:backup:create' > /etc/cron.d/gitlab-backup && chmod 0644 /etc/cron.d/gitlab-backup && crontab /etc/cron.d/gitlab-backup && cron && /assets/wrapper"]
networks:
- gitlab-net
networks:
gitlab-net:
driver: bridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment