47 lines
No EOL
1.2 KiB
YAML
47 lines
No EOL
1.2 KiB
YAML
version: '2.2'
|
|
|
|
services:
|
|
gitea:
|
|
privileged: true
|
|
image: gitea/gitea:latest
|
|
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
|
|
restart: always
|
|
networks:
|
|
- proxy
|
|
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"
|
|
|
|
gitlab:
|
|
image: gitlab/gitlab-ce:latest
|
|
restart: always
|
|
hostname: 'git.faulty.nl'
|
|
environment:
|
|
GITLAB_OMNIBUS_CONFIG: |
|
|
external_url 'https://git.faulty.nl'
|
|
gitlab_rails['gitlab_shell_ssh_port'] = 22
|
|
nginx['listen_port'] = 80
|
|
nginx['listen_https'] = false
|
|
# temp ssh port
|
|
VIRTUAL_HOST: git.faulty.nl
|
|
LETSENCRYPT_HOST: git.faulty.nl
|
|
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 |