This repository has been archived on 2023-05-02. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
neo/docker-compose.devops.yml
2023-03-01 15:17:10 +01:00

58 lines
1.4 KiB
YAML

version: '2.2'
services:
gitea:
image: gitea/gitea:latest
restart: always
privileged: true
environment:
- USER_UID=1000
- USER_GID=1002
- LETSENCRYPT_EMAIL=webmaster@faulty.nl
- LETSENCRYPT_HOST=gitea.faulty.nl
- VIRTUAL_HOST=gitea.faulty.nl
- 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:
- "2222:22"
networks:
- proxy
- internal
gitlab:
image: gitlab/gitlab-ce:latest
restart: always
hostname: 'git.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: git.ixvd.net
LETSENCRYPT_HOST: git.ixvd.net
ports:
- '22: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
gitlab-runner:
image: gitlab/gitlab-runner:latest
volumes:
- /srv/gitlab/other/runner:/etc/gitlab-runner
- /var/run/docker.sock:/var/run/docker.sock
networks:
- internal