Skip to content

Instantly share code, notes, and snippets.

@CrCs2O4 CrCs2O4/Dockerfile Secret
Created Sep 2, 2019

Embed
What would you like to do?
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"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.