File: docker-compose.yml

package info (click to toggle)
python-gitlab 1%3A4.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 3,048 kB
  • sloc: python: 24,168; makefile: 171; ruby: 27; javascript: 3
file content (53 lines) | stat: -rw-r--r-- 1,683 bytes parent folder | download | duplicates (2)
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
47
48
49
50
51
52
53
version: '3.5'

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_ROOT_PASSWORD: 5iveL!fe
      GITLAB_SHARED_RUNNERS_REGISTRATION_TOKEN: registration-token
      GITLAB_OMNIBUS_CONFIG: |
        external_url 'http://127.0.0.1:8080'
        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
        letsencrypt['enable'] = false
        gitlab_rails['initial_license_file'] = '/python-gitlab-ci.gitlab-license'
        gitlab_rails['monitoring_whitelist'] = ['0.0.0.0/0']
    entrypoint:
      - /bin/sh
      - -c
      - ruby /create_license.rb && /assets/wrapper
    volumes:
      - ${PWD}/tests/functional/fixtures/create_license.rb:/create_license.rb
    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