aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.yaml
blob: 0b7a170344823baac91b2ab7cc61628919b4435e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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: