2017-09-16 22:27:47 +02:00
|
|
|
version: '2'
|
|
|
|
|
|
|
|
volumes:
|
2018-01-25 09:45:11 +01:00
|
|
|
nextcloud:
|
|
|
|
nextcloud_db:
|
|
|
|
gitlab_config:
|
|
|
|
gitlab_logs:
|
|
|
|
gitlab_data:
|
|
|
|
letsencrypt:
|
2018-12-18 19:14:14 +01:00
|
|
|
runner_0_etc:
|
|
|
|
runner_0_home:
|
2020-04-22 12:50:46 +02:00
|
|
|
runner_tud_etc:
|
|
|
|
runner_tud_home:
|
2017-09-16 22:27:47 +02:00
|
|
|
|
|
|
|
services:
|
2017-09-16 23:39:30 +02:00
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
# Static website served at wojciechkozlowski.eu
|
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
|
2017-09-16 22:27:47 +02:00
|
|
|
html:
|
2018-01-25 01:30:19 +01:00
|
|
|
container_name: html
|
2019-07-28 18:52:37 +02:00
|
|
|
build: html
|
|
|
|
image: registry.wojciechkozlowski.eu/wojtek/loki/html
|
2017-09-16 22:53:23 +02:00
|
|
|
restart: always
|
2017-09-16 22:27:47 +02:00
|
|
|
|
2017-09-16 23:39:30 +02:00
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
# NextCloud installation available at cloud.wojciechkozlowski.eu
|
2021-08-08 10:13:01 +02:00
|
|
|
#
|
|
|
|
# Note about version lock:
|
|
|
|
# https://dba.stackexchange.com/questions/256427/unable-to-create-tables-with-row-format-compressed
|
2017-09-16 23:39:30 +02:00
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
|
2017-09-16 22:53:23 +02:00
|
|
|
nextcloud-db:
|
2018-01-25 01:30:19 +01:00
|
|
|
container_name: nextcloud-db
|
2021-08-08 10:13:01 +02:00
|
|
|
image: mariadb:10.5
|
2018-12-18 20:47:29 +01:00
|
|
|
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
|
2017-09-16 22:53:23 +02:00
|
|
|
volumes:
|
2018-01-25 09:45:11 +01:00
|
|
|
- nextcloud_db:/var/lib/mysql
|
2017-09-16 22:53:23 +02:00
|
|
|
environment:
|
|
|
|
- MYSQL_ROOT_PASSWORD=nextcloud
|
|
|
|
- MYSQL_PASSWORD=nextcloud
|
|
|
|
- MYSQL_DATABASE=nextcloud
|
|
|
|
- MYSQL_USER=nextcloud
|
|
|
|
restart: always
|
|
|
|
|
2017-09-16 23:39:30 +02:00
|
|
|
nextcloud-app:
|
2018-01-25 01:30:19 +01:00
|
|
|
container_name: nextcloud-app
|
2018-12-11 22:11:50 +01:00
|
|
|
build: nextcloud
|
|
|
|
image: registry.wojciechkozlowski.eu/wojtek/loki/nextcloud
|
2017-09-16 22:53:23 +02:00
|
|
|
links:
|
|
|
|
- nextcloud-db
|
|
|
|
volumes:
|
2018-01-25 09:45:11 +01:00
|
|
|
- nextcloud:/var/www/html
|
2017-09-16 22:53:23 +02:00
|
|
|
restart: always
|
|
|
|
|
2017-09-16 23:39:30 +02:00
|
|
|
nextcloud:
|
2018-01-25 01:30:19 +01:00
|
|
|
container_name: nextcloud
|
2017-09-16 22:53:23 +02:00
|
|
|
image: nginx
|
|
|
|
links:
|
2017-09-16 23:39:30 +02:00
|
|
|
- nextcloud-app
|
2017-09-16 22:53:23 +02:00
|
|
|
volumes:
|
|
|
|
- ./nextcloud/nginx.conf:/etc/nginx/nginx.conf:ro
|
|
|
|
volumes_from:
|
2017-09-16 23:39:30 +02:00
|
|
|
- nextcloud-app
|
2017-09-16 22:53:23 +02:00
|
|
|
restart: always
|
2017-09-16 22:27:47 +02:00
|
|
|
|
2017-09-16 23:39:30 +02:00
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
# GitLab installation available at gitlab.wojciechkozlowski.eu
|
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
gitlab:
|
2018-01-25 01:30:19 +01:00
|
|
|
container_name: gitlab
|
2018-01-24 20:27:06 +01:00
|
|
|
image: gitlab/gitlab-ce
|
2017-09-16 23:39:30 +02:00
|
|
|
environment:
|
|
|
|
GITLAB_OMNIBUS_CONFIG: |
|
2018-12-10 21:52:11 +01:00
|
|
|
external_url 'https://gitlab.wojciechkozlowski.eu'
|
|
|
|
nginx['listen_port'] = 80
|
|
|
|
nginx['listen_https'] = false
|
2018-12-10 23:11:20 +01:00
|
|
|
registry_external_url 'https://registry.wojciechkozlowski.eu'
|
|
|
|
registry_nginx['listen_port'] = 80
|
|
|
|
registry_nginx['listen_https'] = false
|
2017-09-16 23:39:30 +02:00
|
|
|
# Add any other gitlab.rb configuration here, each on its own line
|
2017-09-17 02:07:45 +02:00
|
|
|
ports:
|
2018-12-18 01:48:04 +01:00
|
|
|
- '2770:22'
|
2017-09-16 23:39:30 +02:00
|
|
|
volumes:
|
2018-01-25 09:45:11 +01:00
|
|
|
- gitlab_config:/etc/gitlab
|
|
|
|
- gitlab_logs:/var/log/gitlab
|
|
|
|
- gitlab_data:/var/opt/gitlab
|
2017-09-16 23:39:30 +02:00
|
|
|
restart: always
|
|
|
|
|
2018-12-18 22:12:11 +01:00
|
|
|
# See https://docs.gitlab.com/ee/ci/docker/using_docker_build.html for how to
|
2019-07-28 10:22:06 +02:00
|
|
|
# register the runner for running docker-in-docker builds.
|
|
|
|
#
|
|
|
|
# Note the need to set docker-privileged.
|
|
|
|
#
|
|
|
|
# https://gitlab.com/gitlab-org/gitlab-runner/issues/4501
|
|
|
|
# Since docker 19.03 also need to set the following in config.toml:
|
|
|
|
# [[runners]]
|
|
|
|
# environment = ["DOCKER_TLS_CERTDIR="]
|
2018-12-18 22:12:11 +01:00
|
|
|
runner-0:
|
|
|
|
container_name: runner-0
|
|
|
|
image: gitlab/gitlab-runner
|
|
|
|
volumes:
|
|
|
|
- runner_0_etc:/etc/gitlab-runner
|
|
|
|
- runner_0_home:/home/gitlab-runner
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
restart: always
|
|
|
|
|
2020-04-22 12:50:46 +02:00
|
|
|
runner-tud:
|
|
|
|
container_name: runner-tud
|
|
|
|
image: gitlab/gitlab-runner
|
|
|
|
volumes:
|
|
|
|
- runner_tud_etc:/etc/gitlab-runner
|
|
|
|
- runner_tud_home:/home/gitlab-runner
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
restart: always
|
2018-12-18 22:12:11 +01:00
|
|
|
|
2017-09-16 23:39:30 +02:00
|
|
|
# ---------------------------------------------------------------------------
|
2018-12-11 22:39:22 +01:00
|
|
|
# Reverse proxy served by Nginx.
|
2017-09-16 23:39:30 +02:00
|
|
|
# ---------------------------------------------------------------------------
|
|
|
|
|
2017-09-16 22:27:47 +02:00
|
|
|
proxy:
|
2017-09-16 22:53:23 +02:00
|
|
|
container_name: proxy
|
2017-09-17 23:14:21 +02:00
|
|
|
build: proxy
|
2018-12-10 23:11:20 +01:00
|
|
|
image: registry.wojciechkozlowski.eu/wojtek/loki/proxy
|
2017-09-16 22:27:47 +02:00
|
|
|
ports:
|
|
|
|
- 80:80
|
2017-09-17 02:07:45 +02:00
|
|
|
- 443:443
|
2017-09-16 22:27:47 +02:00
|
|
|
links:
|
|
|
|
- html
|
2017-09-16 23:39:30 +02:00
|
|
|
- nextcloud
|
|
|
|
- gitlab
|
|
|
|
volumes:
|
2017-09-17 02:07:45 +02:00
|
|
|
- ./proxy/nginx.conf:/etc/nginx/nginx.conf:ro
|
|
|
|
- ./proxy/nginx-conf.d:/etc/nginx/conf.d:ro
|
2018-01-25 09:45:11 +01:00
|
|
|
- letsencrypt:/etc/letsencrypt
|
2017-09-16 22:27:47 +02:00
|
|
|
restart: always
|