version: "3.6" services: gitlab: networks: - proxy image: gitlab/gitlab-ce:latest ports: - "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 nginx['listen_port'] = 80 nginx['listen_https'] = false 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