version: "3.6" services: gitlab: networks: - proxy image: gitlab/gitlab-ce:latest ports: - "4080:80" - "4022:22" volumes: - data:/var/opt/gitlab - logs:/var/log/gitlab - config:/etc/gitlab # shm_size: '256m' environment: - GITLAB_OMNIBUS_CONFIG | external_url = 'https://lsms-cloud.epfl.ch/gitlab' gitlab_rails['gitlab_shell_ssh_port'] = 4022 gitlab_rails['initial_root_password'] = File.read('/run/secrets/gitlab_root_password') nginx['redirect_http_to_https'] = false registry_nginx['redirect_http_to_https'] = false mattermost_nginx['redirect_http_to_https'] = false letsencrypt['enable'] = false - VIRTUAL_HOST=lsms-cloud.epfl.ch - VIRTUAL_PORT=80 - VIRTUAL_PATH=/gitlab/ - VIRTUAL_DEST=/ # configs: # - source: gitlab # target: /omnibus_config.rb secrets: - gitlab_root_password gitlab-runner: image: gitlab/gitlab-runner:alpine deploy: mode: replicated replicas: 4 # configs: # gitlab: # external: true secrets: gitlab_root_password: external: true volumes: config: logs: data: networks: proxy: external: true