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' registry_external_url 'https://gitlab.jafner.net' gitlab_rails['gitlab_shell_ssh_port'] = 2229 nginx['listen_https'] = false nginx['listen_port'] = 80 gitlab_rails['smtp_enable'] = true gitlab_rails['smtp_address'] = "smtp.gmail.com" gitlab_rails['smtp_port'] = 465 gitlab_rails['smtp_user_name'] = "noreply@jafner.net" gitlab_rails['smtp_password'] = "kvdunrhjsqbslson" gitlab_rails['smtp_domain'] = "jafner.net" gitlab_rails['smtp_authentication'] = "login" gitlab_rails['smtp_enable_starttls_auto'] = true gitlab_rails['smtp_openssl_verify_mode'] = 'peer' gitlab_rails['gitlab_email_from'] = 'gitlab@jafner.net' gitlab_rails['gitlab_email_reply_to'] = 'noreply@jafner.net' ports: - '2229:22' - '5050:5050' volumes: - '${DOCKER_DATA}/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.services.gitlab.loadbalancer.server.port=80 gitlab-runner: image: 'gitlab/gitlab-runner:latest' container_name: gitlab-runner restart: always environment: - GODEBUG="x509ignoreCN=0" volumes: - ${DOCKER_DATA}/runner-config:/etc/gitlab-runner - /var/run/docker.sock:/var/run/docker.sock networks: web: external: true