From 7ec546f8c5dd021ced5cb2c57b6dad07f04ccbd9 Mon Sep 17 00:00:00 2001 From: kev Date: Fri, 9 Oct 2020 18:36:04 +0800 Subject: [PATCH] add outline --- README.md | 1 + outline/README.md | 2 ++ outline/docker-compose.yml | 28 ++++++++++++++++ outline/env | 62 +++++++++++++++++++++++++++++++++++ rocketchat/docker-compose.yml | 2 +- 5 files changed, 94 insertions(+), 1 deletion(-) create mode 100644 outline/README.md create mode 100644 outline/docker-compose.yml create mode 100644 outline/env diff --git a/README.md b/README.md index a0c933e..34b508d 100644 --- a/README.md +++ b/README.md @@ -345,6 +345,7 @@ A collection of delicious docker recipes. - [x] osixia/openldap - [x] kylemanna/openvpn - [x] campbellsoftwaresolutions/osticket +- [x] outlinewiki/outline - [x] owncloud - [x] phpmyadmin - [x] pihole/pihole diff --git a/outline/README.md b/outline/README.md new file mode 100644 index 0000000..df80789 --- /dev/null +++ b/outline/README.md @@ -0,0 +1,2 @@ +outline +======= diff --git a/outline/docker-compose.yml b/outline/docker-compose.yml new file mode 100644 index 0000000..bee6064 --- /dev/null +++ b/outline/docker-compose.yml @@ -0,0 +1,28 @@ +version: "3.8" + +services: + + outline: + image: outlinewiki/outline + ports: + - "3000:3000" + env_file: + - env + restart: unless-stopped + + postgres: + image: postgres:alpine + volumes: + - ./data/postgres:/var/lib/postgresql/data + environment: + - POSTGRES_USER=outline + - POSTGRES_PASSWORD=outline + - POSTGRES_DB=outline + restart: unless-stopped + + redis: + image: redis:alpine + command: --save 900 1 + volumes: + - ./data/redis:/data + restart: unless-stopped diff --git a/outline/env b/outline/env new file mode 100644 index 0000000..b0b95db --- /dev/null +++ b/outline/env @@ -0,0 +1,62 @@ +# Copy this file to .env, remove this comment and change the keys. For development +# with docker this should mostly work out of the box other than setting the Slack +# keys (for auth) and the SECRET_KEY. +# +# Please use `openssl rand -hex 32` to create SECRET_KEY +SECRET_KEY=generate_a_new_key +UTILS_SECRET=generate_a_new_key + +DATABASE_URL=postgres://outline:outline@postgres:5432/outline +DATABASE_URL_TEST=postgres://user:pass@localhost:5532/outline-test +REDIS_URL=redis://redis:6379 + +URL=http://localhost:3000 +PORT=3000 + +# enforce (auto redirect to) https in production, (optional) default is true. +# set to false if your SSL is terminated at a loadbalancer, for example +FORCE_HTTPS=false + +ENABLE_UPDATES=true +DEBUG=cache,presenters,events + +# Third party signin credentials (at least one is required) +SLACK_KEY=get_a_key_from_slack +SLACK_SECRET=get_the_secret_of_above_key + +GOOGLE_CLIENT_ID= +GOOGLE_CLIENT_SECRET= + +# Comma separated list of domains to be allowed (optional) +# If not set, all Google apps domains are allowed by default +GOOGLE_ALLOWED_DOMAINS= + +# Third party credentials (optional) +SLACK_VERIFICATION_TOKEN=PLxk6OlXXXXXVj3YYYY +SLACK_APP_ID=A0XXXXXXX +SLACK_MESSAGE_ACTIONS=true +GOOGLE_ANALYTICS_ID= +SENTRY_DSN= + +# AWS credentials (optional in development) +AWS_ACCESS_KEY_ID=get_a_key_from_aws +AWS_SECRET_ACCESS_KEY=get_the_secret_of_above_key +AWS_REGION=xx-xxxx-x +AWS_S3_UPLOAD_BUCKET_URL=http://s3:4569 +AWS_S3_UPLOAD_BUCKET_NAME=bucket_name_here +AWS_S3_UPLOAD_MAX_SIZE=26214400 +AWS_S3_FORCE_PATH_STYLE=true +# uploaded s3 objects permission level, default is private +# set to "public-read" to allow public access +AWS_S3_ACL=private + +# Emails configuration (optional) +SMTP_HOST= +SMTP_PORT= +SMTP_USERNAME= +SMTP_PASSWORD= +SMTP_FROM_EMAIL= +SMTP_REPLY_EMAIL= + +# Custom logo that displays on the authentication screen, scaled to height: 60px +# TEAM_LOGO=https://example.com/images/logo.png diff --git a/rocketchat/docker-compose.yml b/rocketchat/docker-compose.yml index d38500b..a7375be 100644 --- a/rocketchat/docker-compose.yml +++ b/rocketchat/docker-compose.yml @@ -7,7 +7,7 @@ version: "3.8" services: rocketchat: - image: rocketchat/rocket.chat:3.6.3 + image: rocketchat/rocket.chat:3.7.0 ports: - "3000:3000" environment: