62 lines
1.5 KiB
YAML
62 lines
1.5 KiB
YAML
version: '2.2'
|
|
|
|
services:
|
|
gitlab:
|
|
image: gitlab/gitlab-ce:latest
|
|
restart: always
|
|
hostname: 'old-git.neo.ixvd.net'
|
|
environment:
|
|
GITLAB_OMNIBUS_CONFIG: |
|
|
external_url 'https://git.ixvd.net'
|
|
gitlab_rails['gitlab_shell_ssh_port'] = 22
|
|
nginx['listen_port'] = 80
|
|
nginx['listen_https'] = false
|
|
# temp ssh port
|
|
VIRTUAL_HOST: old-git.neo.ixvd.net
|
|
LETSENCRYPT_HOST: old-git.neo.ixvd.net
|
|
ports:
|
|
- '2223:22'
|
|
volumes:
|
|
- /srv/gitlab/config:/etc/gitlab
|
|
- /srv/gitlab/data:/var/opt/gitlab
|
|
- /srv/gitlab/other/logs:/var/log/gitlab
|
|
shm_size: '256m'
|
|
networks:
|
|
- proxy
|
|
- internal
|
|
|
|
gitea:
|
|
image: gitea/gitea:latest
|
|
restart: always
|
|
privileged: true
|
|
environment:
|
|
- USER_UID=1000
|
|
- USER_GID=1002
|
|
- LETSENCRYPT_HOST=git.ixvd.net
|
|
- VIRTUAL_HOST=git.ixvd.net
|
|
- VIRTUAL_PORT=3000
|
|
volumes:
|
|
- /srv/gitea/data:/data/git
|
|
- /srv/gitea/config:/data/gitea
|
|
- /srv/gitea/other/ssh:/data/ssh
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
ports:
|
|
- "22:22"
|
|
networks:
|
|
- proxy
|
|
- internal
|
|
|
|
|
|
gitea-runner:
|
|
image: gitea/act_runner
|
|
restart: always
|
|
depends_on:
|
|
- gitea
|
|
volumes:
|
|
- /srv/gitea/other/runner:/data
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
environment:
|
|
- GITEA_INSTANCE_URL=https://git.ixvd.net
|
|
- GITEA_RUNNER_REGISTRATION_TOKEN=CQZ3VJwNDT3y2DkRDgkuAYl2FQaVlMqlAweUTC26
|
|
|