version: '3.3' services: gitlab: image: 'gitlab/gitlab-ee:latest' container_name: gitlab restart: unless-stopped hostname: 'gitlab.jafner.net' networks: - web environment: GITLAB_OMNIBUS_CONFIG: | external_url 'https://gitlab.jafner.net' gitlab_rails['gitlab_shell_ssh_port'] = 2229 nginx['listen_https'] = false nginx['listen_port'] = 80 # Add any other gitlab.rb configuration here, each on its own line ports: #- '80:80' #- '443:443' - '2229:22' volumes: - '${DOCKER_CONFIG}/config:/etc/gitlab' - '${DOCKER_DATA}/logs:/var/log/gitlab' - '${DOCKER_DATA}/data:/var/opt/gitlab' shm_size: '256m' labels: - traefik.http.routers.gitlab.rule=Host(`gitlab.jafner.net`) - traefik.http.routers.gitlab.tls.certresolver=lets-encrypt - traefik.http.routers.gitlab.middlewares=lan-only@file - traefik.http.services.gitlab.loadbalancer.server.port=80 networks: web: external: true