version: '3' services: postgresql: container_name: gitlab-postgres image: gitlab-postgres volumes: - pgdata:/var/lib/postgresql - pgsocket:/run/postgresql/.s.PGSQL.5432 networks: - gitlab-net redis: container_name: gitlab-redis image: redis:alpine networks: - gitlab-net gitlab: container_name: gitlab image: gitlab volumes: - pgsocket:/run/postgresql/.s.PGSQL.5432 networks: gitlab-net: volumes: pgdata: pgsocket: