Вынес gitea репозиторий в отдельный композ а также отдельный композ для прометеуса
This commit is contained in:
parent
7897e53807
commit
01216132ec
35
gitea-compose.yaml
Executable file
35
gitea-compose.yaml
Executable file
@ -0,0 +1,35 @@
|
|||||||
|
services:
|
||||||
|
|
||||||
|
server:
|
||||||
|
image: docker.gitea.com/gitea:1.23.7
|
||||||
|
container_name: gitea
|
||||||
|
environment:
|
||||||
|
- USER_UID=1000
|
||||||
|
- USER_GID=1000
|
||||||
|
- GITEAdatabaseDB_TYPE=postgres
|
||||||
|
- GITEAdatabaseHOST=db:5432
|
||||||
|
- GITEAdatabaseNAME=gitea
|
||||||
|
- GITEAdatabaseUSER=gitea
|
||||||
|
- GITEAdatabasePASSWD=gitea
|
||||||
|
restart: always
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- /home/apotheosis/gitea:/data
|
||||||
|
- /etc/timezone:/etc/timezone:ro
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
ports:
|
||||||
|
- "3000:3000"
|
||||||
|
- "222:22"
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
|
||||||
|
db:
|
||||||
|
image: docker.io/library/postgres:14
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
- POSTGRES_USER=gitea
|
||||||
|
- POSTGRES_PASSWORD=gitea
|
||||||
|
- POSTGRES_DB=gitea
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- /home/apotheosis/postgres:/var/lib/postgresql/data
|
@ -5,7 +5,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- CONFIG_FILE=/runner/config.yaml
|
- CONFIG_FILE=/runner/config.yaml
|
||||||
- GITEA_INSTANCE_URL=https://super-admins.online
|
- GITEA_INSTANCE_URL=https://super-admins.online
|
||||||
- GITEA_RUNNER_REGISTRATION_TOKEN=WRXwMh6gi6CrF3XddpkH4mcrx8sNpnyBam0FY9gj
|
- GITEA_RUNNER_REGISTRATION_TOKEN=eEGt8J0BiCoORJg93tZKGSQIHBXJwhyKLT0mR62C
|
||||||
volumes:
|
volumes:
|
||||||
- ./runner-1/config.yaml:/runner/config.yaml
|
- ./runner-1/config.yaml:/runner/config.yaml
|
||||||
- ./runner-1/data:/data
|
- ./runner-1/data:/data
|
||||||
|
13
gitea-runner/data/.runner
Normal file
13
gitea-runner/data/.runner
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"WARNING": "This file is automatically generated by act-runner. Do not edit it manually unless you know what you are doing. Removing this file will cause act runner to re-register as a new runner.",
|
||||||
|
"id": 2,
|
||||||
|
"uuid": "e4e25a4a-43dc-4ea9-8f16-01fe13a17f23",
|
||||||
|
"name": "11fbc94186bc",
|
||||||
|
"token": "f6adc2a82be7dc8c7ad6b74f794c40752df8d389",
|
||||||
|
"address": "https://super-admins.online",
|
||||||
|
"labels": [
|
||||||
|
"ubuntu-latest:docker://gitea/runner-images:ubuntu-latest",
|
||||||
|
"ubuntu-22.04:docker://gitea/runner-images:ubuntu-22.04",
|
||||||
|
"ubuntu-20.04:docker://gitea/runner-images:ubuntu-20.04"
|
||||||
|
]
|
||||||
|
}
|
@ -1,14 +1,22 @@
|
|||||||
version: '3'
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
gitea-runner:
|
gitea-runner:
|
||||||
image: gitea/act_runner:latest
|
image: gitea/act_runner
|
||||||
container_name: gitea-runner
|
container_name: gitea-runner
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
- ./config.yaml:/runner/config.yml
|
- ./config.yml:/runner/config.yml
|
||||||
- /var/gitea-runner:/data
|
- ./data:/data
|
||||||
environment:
|
environment:
|
||||||
- GITEA_INSTANCE_URL=https://super-admins.online
|
- GITEA_INSTANCE_URL=https://super-admins.online
|
||||||
- GITEA_RUNNER_REGISTRATION_TOKEN=9MQVuajOz3ayFbpe4EKYIPSWeFBNOYbEuNwa2xUb
|
- GITEA_RUNNER_REGISTRATION_TOKEN=eEGt8J0BiCoORJg93tZKGSQIHBXJwhyKLT0mR62C
|
||||||
|
command: >
|
||||||
|
sh -c "
|
||||||
|
if [ ! -f /data/.registered ]; then
|
||||||
|
act_runner register --no-interactive --instance $${GITEA_INSTANCE_URL} --token $${GITEA_RUNNER_REGISTRATION_TOKEN} &&
|
||||||
|
touch /data/.registered &&
|
||||||
|
act_runner --config /runner/config.yml daemon
|
||||||
|
else
|
||||||
|
act_runner --config /runner/config.yml daemon
|
||||||
|
fi"
|
||||||
|
21
monitoring-compose.yaml
Executable file
21
monitoring-compose.yaml
Executable file
@ -0,0 +1,21 @@
|
|||||||
|
services:
|
||||||
|
|
||||||
|
node-exporter:
|
||||||
|
image: prom/node-exporter
|
||||||
|
container_name: node-exporter
|
||||||
|
ports:
|
||||||
|
- "9100:9100"
|
||||||
|
nginx-exporter:
|
||||||
|
image: nginx/nginx-prometheus-exporter
|
||||||
|
container_name: nginx-exporter
|
||||||
|
ports:
|
||||||
|
- "9113:9113"
|
||||||
|
command:
|
||||||
|
- '-nginx.scrape-uri=http://webserver:8080/stub_status'
|
||||||
|
postgres-exporter:
|
||||||
|
image: prometheuscommunity/postgres-exporter
|
||||||
|
container_name: postgres-exporter
|
||||||
|
ports:
|
||||||
|
- "9187:9187"
|
||||||
|
environment:
|
||||||
|
DATA_SOURCE_NAME: "postgresql://gitea:gitea@db:5432/gitea?sslmode=disable"
|
Loading…
x
Reference in New Issue
Block a user