Skip to content

Instantly share code, notes, and snippets.

@CrCs2O4
Created September 2, 2019 13:43
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CrCs2O4/d4d78780ad46bef6cf618e1feb7f16f7 to your computer and use it in GitHub Desktop.
Save CrCs2O4/d4d78780ad46bef6cf618e1feb7f16f7 to your computer and use it in GitHub Desktop.
Dnote
version: '2.1'
services:
dnote:
image: dnote
depends_on:
- postgres
environment:
DBUser: postgres
DBHost: postgres
DBPassword: password
DBPort: 5432
DBName: dnote
ports:
- "3000:3000"
restart: on-failure
postgres:
image: postgres:10.3-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_USERNAME: postgres
POSTGRES_PASSWORD: password
expose:
- 5432
ports:
- 5432:5432
FROM ubuntu:18.04
RUN apt-get update \
&& apt-get install -y curl
RUN curl -L https://github.com/dnote/dnote/releases/download/server-v0.1.0-beta/dnote_server_0.1.0-beta_linux_amd64.tar.gz -O \
&& tar -xf dnote_server_0.1.0-beta_linux_amd64.tar.gz -C /usr/bin \
&& chmod a+x /usr/bin/dnote-server
CMD ["/usr/bin/dnote-server", "start"]
@sungwoncho
Copy link

Thanks for sharing. Now you can more conveniently install Dnote using the official docker image [0].

[0] - https://hub.docker.com/repository/docker/dnote/dnote

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment