From 75730d572bcf8bc349de57e727c47c58c0a91449 Mon Sep 17 00:00:00 2001 From: Yasuhiro Yamaguchi Date: Sun, 2 May 2021 08:33:51 +0900 Subject: [PATCH] initial commit --- .env | 2 ++ README.md | 10 ++++++++++ docker-compose.yml | 38 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 .env create mode 100644 README.md create mode 100644 docker-compose.yml diff --git a/.env b/.env new file mode 100644 index 0000000..c9741a9 --- /dev/null +++ b/.env @@ -0,0 +1,2 @@ +DNOTE_PORT=2389 +DNOTE_DISABLE_REGISTRATION=true diff --git a/README.md b/README.md new file mode 100644 index 0000000..d6fbb5d --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ +dnote-docker +============ + +``` +$ cat << EOF > .env +DNOTE_PORT=2389 +DNOTE_DISABLE_REGISTRATION=true +EOF +$ docker-compose up -d +``` diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..e86034d --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,38 @@ +version: "3" + +services: + postgres: + image: postgres:11-alpine + environment: + POSTGRES_USER: dnote + POSTGRES_PASSWORD: dnote + POSTGRES_DB: dnote + volumes: + - data:/var/lib/postgresql/data + restart: always + + dnote: + image: dnote/dnote:latest + environment: + GO_ENV: PRODUCTION + DBSkipSSL: "true" + DBHost: postgres + DBPort: 5432 + DBName: dnote + DBUser: dnote + DBPassword: dnote + WebURL: localhost:3000 + OnPremise: "true" + SmtpHost: + SmtpPort: + SmtpUsername: + SmtpPassword: + DisableRegistration: ${DNOTE_DISABLE_REGISTRATION} + ports: + - ${DNOTE_PORT}:3000 + depends_on: + - postgres + restart: always + +volumes: + data: