add gitlab & gitlab.runner & rocket.chat images defined in docker-compose
parent
0d5a72ff71
commit
1462aa90b9
|
|
@ -0,0 +1,16 @@
|
|||
version: "3.9"
|
||||
|
||||
services:
|
||||
|
||||
gitlab-runner:
|
||||
container_name: gitlab-runner
|
||||
image: gitlab/gitlab-runner:alpine3.14-bleeding
|
||||
command:
|
||||
- /bin/bash
|
||||
- -c |
|
||||
cd /etc/Projects/wata &&
|
||||
gitlab-runner run --config "./pyproject.toml"
|
||||
volumes:
|
||||
- ./volumes/gitlab-runner/config:/etc/gitlab-runner
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- ~/Projects:/etc/Projects/
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
GITLAB_ROOT_PASSWORD="87737076p@$$w0rd"
|
||||
GITLAB_ROOT_EMAIL="zukkamil.44@gmail.com"
|
||||
|
||||
GITHUB_ACCESS_TOKEN="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"
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
GITLAB_ROOT_PASSWORD="example"
|
||||
GITLAB_ROOT_EMAIL="example"
|
||||
|
||||
GITHUB_ACCESS_TOKEN="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"
|
||||
|
|
@ -0,0 +1,49 @@
|
|||
version: "3.9"
|
||||
|
||||
services:
|
||||
|
||||
# Add these lines into ~/.ssh/config file
|
||||
# Host gitlab
|
||||
# HostName 0.0.0.0
|
||||
# PreferredAuthentications publickey
|
||||
# IdentityFile ~/.ssh/git_accesses
|
||||
# Port 2222
|
||||
#
|
||||
# If you want push / pull from remote
|
||||
# you must define machine IP instead 0.0.0.0:
|
||||
# Host gitlab
|
||||
# HostName 192.168.1.103
|
||||
# PreferredAuthentications publickey
|
||||
# IdentityFile ~/.ssh/git_accesses
|
||||
# Port 2222
|
||||
#
|
||||
# And you can use gitlab like that:
|
||||
# git clone git@gitlab:devops-things/docker_images.git
|
||||
|
||||
gitlab:
|
||||
image: 'gitlab/gitlab-ee:15.9.2-ee.0'
|
||||
container_name: gitlab
|
||||
restart: always
|
||||
hostname: 'localhost'
|
||||
environment:
|
||||
GITLAB_OMNIBUS_CONFIG: |
|
||||
# root account setup
|
||||
|
||||
gitlab_rails['initial_root_password'] = "${GITLAB_ROOT_PASSWORD}"
|
||||
gitlab_rails['gitlab_root_email'] = "${GITLAB_ROOT_EMAIL}"
|
||||
|
||||
# network setup
|
||||
|
||||
letsencrypt['enable'] = false
|
||||
external_url 'http://0.0.0.0'
|
||||
# gitlab_rails['gitlab_https'] = true
|
||||
# gitlab_rails['gitlab_port'] = 443
|
||||
ports:
|
||||
- 0.0.0.0:80:80
|
||||
- 0.0.0.0:443:443
|
||||
- 0.0.0.0:2222:22
|
||||
volumes:
|
||||
- ./volumes/gitlab/config:/etc/gitlab
|
||||
- ./volumes/gitlab/data:/var/opt/gitlab
|
||||
# - ./volumes/gitlab/logs:/var/log/gitlab
|
||||
shm_size: '256m'
|
||||
|
|
@ -0,0 +1 @@
|
|||
sudo docker-compose down
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
source ./.env
|
||||
sudo docker-compose up -d
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
version: "3.9"
|
||||
|
||||
services:
|
||||
|
||||
https-portal:
|
||||
image: steveltn/https-portal:1
|
||||
container_name: https-portal
|
||||
restart: always
|
||||
environment:
|
||||
DOMAINS: siiconspiracy.tk -> http://rocket-chat:80
|
||||
ports:
|
||||
- 80:80
|
||||
- 443:443
|
||||
links:
|
||||
- rocket-chat
|
||||
|
||||
rocket-chat:
|
||||
image: rocket.chat:5.4.0
|
||||
container_name: rocket_chat
|
||||
environment:
|
||||
ROOT_URL: http://rocket_chat
|
||||
MONGO_OPLOG_URL: mongodb://mongo-db:27017/local
|
||||
ports:
|
||||
- 80
|
||||
links:
|
||||
- mongo-db
|
||||
|
||||
mongo-db:
|
||||
image: mongo:4.4.5
|
||||
container_name: mongo-db
|
||||
environment:
|
||||
PUID: 1000
|
||||
PGID: 1000
|
||||
ports:
|
||||
- 27017
|
||||
volumes:
|
||||
- ./volumes/mongodb:/data/db
|
||||
Loading…
Reference in New Issue