GitLab-CE Docker Image on ECS Fargate with Persistent Data

Hi,

Has anyone managed to get this setup to work? I like the fact the docker image has all the components in a single container, and for our use case it’s fine as we don’t need any HA.

I’ve spents a long time looking at getting EFS to work by modifying gitlab.rb but I’m at a loss. I have EFS mounted, just I can’t seem to setup gitlab to use it instead of ephemeral storage.

The persistent data is a requirement for when we upgrade to the latest docker image.

Worth noting I’ve tried these two config.rb changes:

git_data_dirs({"default"=>{"path"=>"/gitlab/git-data"}})  
postgresql['data_dir']="/gitlab/postgresql/data"

Where /gitlab = my EFS mount.

Thanks

I managed to get this working by having the following in the CloudFormation Template

 MountPoints:
            - 
              ContainerPath: /etc/gitlab
              SourceVolume: efs-config
            -
              ContainerPath: /var/opt/gitlab
              SourceVolume: efs-data
            -
              ContainerPath: /var/log/gitlab
              SourceVolume: efs-logs

      Volumes:
        -
          Name: efs-config
          EFSVolumeConfiguration:
            FilesystemId: fs-3456-cdef
        -
          Name: efs-data
          EFSVolumeConfiguration:
            FilesystemId: fs-2345-bcde
        -
          Name: efs-logs
          EFSVolumeConfiguration:
            FilesystemId: fs-1234abcd