version: '3.6'
services:
  gitlab:
    image: gitlab/gitlab-ce:latest
    container_name: gitlab
    restart: always
    hostname: 'git.irantg.com'
    environment:
      GITLAB_OMNIBUS_CONFIG: |
        external_url 'https://git.irantg.com'
        letsencrypt['enable'] = true
    ports:
      - "8080:80"
      - "8443:443"
      - "2222:22"
    volumes:
      - ./config:/etc/gitlab
      - ./logs:/var/log/gitlab
      - ./data:/var/opt/gitlab
