summaryrefslogtreecommitdiff
path: root/tools/functional/fixtures/docker-compose.yml
blob: a0794d6d69f6534f3da8d15eeef17a847903b021 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
version: '3'

networks:
  gitlab-network:
    name: gitlab-network

services:
  gitlab:
    image: '${GITLAB_IMAGE}:${GITLAB_TAG}'
    container_name: 'gitlab-test'
    hostname: 'gitlab.test'
    privileged: true # Just in case https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/1350
    environment:
      GITLAB_OMNIBUS_CONFIG: |
        external_url 'http://gitlab.test'
        gitlab_rails['initial_root_password'] = '5iveL!fe'
        gitlab_rails['initial_shared_runners_registration_token'] = 'registration-token'
        registry['enable'] = false
        nginx['redirect_http_to_https'] = false
        nginx['listen_port'] = 80
        nginx['listen_https'] = false
        pages_external_url 'http://pages.gitlab.lxd'
        gitlab_pages['enable'] = true
        gitlab_pages['inplace_chroot'] = true
        prometheus['enable'] = false
        alertmanager['enable'] = false
        node_exporter['enable'] = false
        redis_exporter['enable'] = false
        postgres_exporter['enable'] = false
        pgbouncer_exporter['enable'] = false
        gitlab_exporter['enable'] = false
        grafana['enable'] = false
        letsencrypt['enable'] = false
    ports:
      - '8080:80'
      - '2222:22'
    networks:
      - gitlab-network

  gitlab-runner:
    image: gitlab/gitlab-runner:latest
    container_name: 'gitlab-runner-test'
    depends_on:
      - gitlab
    networks:
      - gitlab-network