diff --git a/gitlab.runner/docker-compose.yml b/gitlab.runner/docker-compose.yml new file mode 100644 index 0000000..eb684a2 --- /dev/null +++ b/gitlab.runner/docker-compose.yml @@ -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/ diff --git a/gitlab/.env b/gitlab/.env new file mode 100644 index 0000000..8769f17 --- /dev/null +++ b/gitlab/.env @@ -0,0 +1,4 @@ +GITLAB_ROOT_PASSWORD="87737076p@$$w0rd" +GITLAB_ROOT_EMAIL="zukkamil.44@gmail.com" + +GITHUB_ACCESS_TOKEN="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" \ No newline at end of file diff --git a/gitlab/.env.example b/gitlab/.env.example new file mode 100644 index 0000000..ecd7d62 --- /dev/null +++ b/gitlab/.env.example @@ -0,0 +1,4 @@ +GITLAB_ROOT_PASSWORD="example" +GITLAB_ROOT_EMAIL="example" + +GITHUB_ACCESS_TOKEN="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" \ No newline at end of file diff --git a/gitlab/docker-compose.yml b/gitlab/docker-compose.yml new file mode 100644 index 0000000..7cc5599 --- /dev/null +++ b/gitlab/docker-compose.yml @@ -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' \ No newline at end of file diff --git a/gitlab/down.all.sh b/gitlab/down.all.sh new file mode 100755 index 0000000..b134ce9 --- /dev/null +++ b/gitlab/down.all.sh @@ -0,0 +1 @@ +sudo docker-compose down \ No newline at end of file diff --git a/gitlab/up.all.sh b/gitlab/up.all.sh new file mode 100755 index 0000000..5c1f429 --- /dev/null +++ b/gitlab/up.all.sh @@ -0,0 +1,2 @@ +source ./.env +sudo docker-compose up -d \ No newline at end of file diff --git a/minecraft_server/docker-compose.yml b/minecraft.server/docker-compose.yml similarity index 100% rename from minecraft_server/docker-compose.yml rename to minecraft.server/docker-compose.yml diff --git a/rocket.chat/docker-compose.yml b/rocket.chat/docker-compose.yml new file mode 100644 index 0000000..bfc115c --- /dev/null +++ b/rocket.chat/docker-compose.yml @@ -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