-
-
Save CrCs2O4/d4d78780ad46bef6cf618e1feb7f16f7 to your computer and use it in GitHub Desktop.
Dnote
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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