description: "Gitlab Server"
maintainer: "Valentin Lab <valentin.lab@kalysto.org>"
## XXXvlab: docker uses the 'build' directory or the 'image:' option here.
docker-image: gitlab/gitlab-ce:latest
docker-compose:
  ports:
    - "5022:22"
data-resources:
  - /var/opt/gitlab
  - /var/log/gitlab

config-resources:
  - /etc/gitlab

uses:
  log-rotate:
    #constraint: required | recommended | optional
    #auto: pair | summon | none ## default: pair
    constraint: recommended
    auto: pair
    solves:
      disk-leak: "/var/log/gitlab"
  web-proxy:
    #constraint: required | recommended | optional
    #auto: pair | summon | none ## default: pair
    constraint: recommended
    auto: pair
    solves:
      proxy: "Public access"
    default-options:
      target: !var-expand ${MASTER_BASE_SERVICE_NAME}:80