Skip to content

Instantly share code, notes, and snippets.

@mag1art
Last active February 7, 2024 11:00
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save mag1art/5d426c0e1886d6707adc4566507700b6 to your computer and use it in GitHub Desktop.
Save mag1art/5d426c0e1886d6707adc4566507700b6 to your computer and use it in GitHub Desktop.
Docker compose with GitLab CE and runner for Orange pi 5 aarch64 (arm64)
# docker-compose.yml
version: '3.7'
services:
web:
image: 'yrzr/gitlab-ce-arm64v8:latest'
restart: always
hostname: 'localhost'
container_name: gitlab-ce
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://localhost'
GITLAB_ROOT_PASSWORD: "YourPasswordHere"
ports:
- '30080:80'
- '30443:443'
- '30022:22'
volumes:
- '$GITLAB_HOME/config:/etc/gitlab'
- '$GITLAB_HOME/logs:/var/log/gitlab'
- '$GITLAB_HOME/data:/var/opt/gitlab'
networks:
- gitlab
gitlab-runner:
image: gitlab/gitlab-runner:alpine
container_name: gitlab-runner
restart: always
depends_on:
- web
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- '$GITLAB_HOME/gitlab-runner:/etc/gitlab-runner'
networks:
- gitlab
networks:
gitlab:
name: gitlab-network
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment