No known key found for this signature in database
GPG Key ID: 1B790863DE7566B1
3 changed files with
50 additions and
0 deletions
-
.env
-
README.md
-
docker-compose.yml
|
|
@ -0,0 +1,2 @@ |
|
|
|
DNOTE_PORT=2389 |
|
|
|
DNOTE_DISABLE_REGISTRATION=true |
|
|
@ -0,0 +1,10 @@ |
|
|
|
dnote-docker |
|
|
|
============ |
|
|
|
|
|
|
|
``` |
|
|
|
$ cat << EOF > .env |
|
|
|
DNOTE_PORT=2389 |
|
|
|
DNOTE_DISABLE_REGISTRATION=true |
|
|
|
EOF |
|
|
|
$ docker-compose up -d |
|
|
|
``` |
|
|
@ -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: |