2020-09-05 16:50:56 +01:00
|
|
|
version: "2.3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
gitlab-pages:
|
|
|
|
image: gitlab/gitlab-ce:latest
|
|
|
|
hostname: pages.theorangeone.net
|
|
|
|
environment:
|
|
|
|
TZ: Europe/London
|
|
|
|
GITLAB_OMNIBUS_CONFIG: |
|
|
|
|
{% filter indent(width=8) %}
|
|
|
|
{%- include "gitlab.rb" %}
|
|
|
|
{% endfilter %}
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
- ./config:/etc/gitlab
|
|
|
|
- ./data:/var/opt/gitlab
|
|
|
|
- ./pages:/var/opt/gitlab/gitlab-rails/shared/pages
|
|
|
|
tmpfs:
|
|
|
|
- /var/log/gitlab
|
2020-09-05 23:08:58 +01:00
|
|
|
healthcheck:
|
|
|
|
disable: true
|
2020-09-05 16:50:56 +01:00
|
|
|
restart: unless-stopped
|
2020-09-05 20:33:57 +01:00
|
|
|
labels:
|
|
|
|
- traefik.enable=true
|
2020-09-30 18:49:36 +01:00
|
|
|
- traefik.http.routers.gitlab-pages.middlewares=compress@file
|
|
|
|
|
2020-09-05 20:33:57 +01:00
|
|
|
- traefik.http.routers.gitlab-pages.rule=HostRegexp(`{subdomain:[a-z]+}.pages.theorangeone.net`)
|
|
|
|
- traefik.http.routers.gitlab-pages.tls.certresolver=le
|
|
|
|
- traefik.http.routers.gitlab-pages.tls.domains[0].main=pages.theorangeone.net
|
|
|
|
- traefik.http.routers.gitlab-pages.tls.domains[0].sans=*.pages.theorangeone.net
|
|
|
|
- traefik.http.services.gitlab-pages-gitlab-pages.loadbalancer.server.port=8080
|
|
|
|
- traefik.http.services.gitlab-pages-gitlab-pages.loadbalancer.server.scheme=http
|
2020-09-30 18:49:36 +01:00
|
|
|
|
|
|
|
- traefik.http.routers.gitlab-pages-notes.rule=Host(`notes.theorangeone.net`)
|
|
|
|
- traefik.http.routers.gitlab-pages-notes.tls.certresolver=le
|
|
|
|
- traefik.http.routers.gitlab-pages-notes.service=gitlab-pages-gitlab-pages
|
2020-09-05 16:50:56 +01:00
|
|
|
|
2020-10-09 21:35:57 +01:00
|
|
|
- traefik.http.routers.gitlab-pages-website.rule=Host(`theorangeone.net`) || Host(`www.theorangeone.net`)
|
|
|
|
- traefik.http.routers.gitlab-pages-website.tls.certresolver=le
|
|
|
|
- traefik.http.routers.gitlab-pages-website.service=gitlab-pages-gitlab-pages
|
|
|
|
|
2020-09-05 16:50:56 +01:00
|
|
|
ssh-server:
|
|
|
|
image: linuxserver/openssh-server:latest
|
|
|
|
environment:
|
|
|
|
- TZ=Europe/London
|
|
|
|
- USER_NAME=user
|
|
|
|
- PUBLIC_KEY_FILE=/id_ed25519.pub
|
|
|
|
- PUID=998
|
|
|
|
- PGID=998
|
|
|
|
volumes:
|
|
|
|
- ./ssh:/config
|
|
|
|
- ./pages:/config/pages
|
|
|
|
- ./id_ed25519.pub:/id_ed25519.pub:ro
|
|
|
|
- ./install-rsync.sh:/config/custom-cont-init.d/install-rsync.sh:ro
|
|
|
|
tmpfs:
|
|
|
|
- /config/logs
|
|
|
|
ports:
|
2021-01-09 18:32:16 +00:00
|
|
|
- 8222:2222
|