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

135 lines
3.5 KiB
YAML
Raw Normal View History

2017-09-16 22:27:47 +02:00
version: '2'
volumes:
vol_wiki:
2017-09-16 22:53:23 +02:00
vol_nextcloud:
vol_nextcloud_db:
2017-09-16 23:39:30 +02:00
vol_gitlab_config:
vol_gitlab_logs:
vol_gitlab_data:
2017-09-17 02:07:45 +02:00
vol_letsencrypt:
2017-09-17 02:49:55 +02:00
vol_letsencrypt_html:
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:
container_name: docker_html
build: html
image: 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:
container_name: docker_wiki
build: dokuwiki
image: wiki
volumes:
- vol_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:
container_name: nextcloud_db
image: mariadb
volumes:
- vol_nextcloud_db:/var/lib/mysql
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:
container_name: nextcloud_app
2017-09-16 22:53:23 +02:00
image: nextcloud:fpm
links:
- nextcloud-db
volumes:
- vol_nextcloud:/var/www/html
restart: always
nextcloud-cron:
container_name: nextcloud_cron
build: nextcloud/cron
image: nextcloud-cron
volumes_from:
- nextcloud-app
restart: always
2017-09-16 23:39:30 +02:00
nextcloud:
2017-09-16 22:53:23 +02:00
container_name: docker_cloud
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:
container_name: docker_gitlab
2017-09-17 14:14:02 +02:00
build: gitlab
image: gitlab
2017-09-16 23:39:30 +02:00
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://gitlab.wojciechkozlowski.eu'
# Add any other gitlab.rb configuration here, each on its own line
2017-09-17 02:07:45 +02:00
ports:
2017-09-17 14:55:00 +02:00
- '2770:22'
2017-09-16 23:39:30 +02:00
volumes:
- vol_gitlab_config:/etc/gitlab
- vol_gitlab_logs:/var/log/gitlab
- vol_gitlab_data:/var/opt/gitlab
restart: always
# ---------------------------------------------------------------------------
# Reverse proxy served by Nginx
# ---------------------------------------------------------------------------
2017-09-16 22:27:47 +02:00
proxy:
2017-09-16 22:53:23 +02:00
container_name: proxy
2017-09-17 02:49:55 +02:00
image: nginx
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
- vol_letsencrypt:/etc/letsencrypt
2017-09-17 02:49:55 +02:00
- vol_letsencrypt_html:/var/www/html
restart: always
# ---------------------------------------------------------------------------
# Certbot container running a cron job to renew certificates.
# ---------------------------------------------------------------------------
certbot:
container_name: certbot
build: certbot
image: certbot
volumes:
- vol_letsencrypt:/etc/letsencrypt
- vol_letsencrypt_html:/var/www/html
2017-09-16 22:27:47 +02:00
restart: always