This repository has been archived on 2023-02-05. You can view files and clone it, but cannot push or open issues or pull requests.
loki/docker-compose.yml

151 lines
4.2 KiB
YAML
Raw Normal View History

2017-09-16 22:27:47 +02:00
version: '2'
volumes:
wiki:
nextcloud:
nextcloud_db:
gitlab_config:
gitlab_logs:
gitlab_data:
letsencrypt:
2018-12-18 19:14:14 +01:00
runner_0_etc:
runner_0_home:
2019-03-20 21:21:05 +01:00
shadowsocks:
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
image: nginx
volumes:
- ./html/html-wojciechkozlowski.eu/:/usr/share/nginx/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
# ---------------------------------------------------------------------------
# DokuWiki installation available at wiki.wojciechkozlowski.eu
# ---------------------------------------------------------------------------
2017-09-16 22:27:47 +02:00
wiki:
2018-01-25 01:30:19 +01:00
container_name: wiki
2017-09-16 22:27:47 +02:00
build: dokuwiki
image: registry.wojciechkozlowski.eu/wojtek/loki/wiki
2017-09-16 22:27:47 +02:00
volumes:
- wiki:/var/dokuwiki-storage
2017-09-16 22:53:23 +02:00
restart: always
2017-09-16 23:39:30 +02:00
# ---------------------------------------------------------------------------
# NextCloud installation available at cloud.wojciechkozlowski.eu
# ---------------------------------------------------------------------------
2017-09-16 22:53:23 +02:00
nextcloud-db:
2018-01-25 01:30:19 +01:00
container_name: nextcloud-db
2017-09-16 22:53:23 +02:00
image: mariadb
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
2017-09-16 22:53:23 +02:00
volumes:
- 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:
- 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
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
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:
- gitlab_config:/etc/gitlab
- gitlab_logs:/var/log/gitlab
- gitlab_data:/var/opt/gitlab
- ./gitlab/ssh_config:/etc/ssh/ssh_config
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
# register the runner for running docker-in-docker builds. Note the need to
# set docker-privileged.
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
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
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
- wiki
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
- letsencrypt:/etc/letsencrypt
2017-09-16 22:27:47 +02:00
restart: always
2019-03-20 21:21:05 +01:00
2019-03-20 21:23:20 +01:00
# ---------------------------------------------------------------------------
# Shadowsocks server.
# ---------------------------------------------------------------------------
shadowsocks:
container_name: shadowsocks
build: shadowsocks
image: registry.wojciechkozlowski.eu/wojtek/loki/shadowsocks
ports:
- 7698:7698
volumes:
- shadowsocks:/var/shadowsocks
restart: always