From 1a63d04e6408068a50bd883835015f281296e3e1 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Thu, 18 Apr 2019 19:06:57 +0900 Subject: [PATCH] Updated docker configuration --- Dockerfile | 2 +- docker-compose.yml | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 21578a44..4a83edd1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,4 +11,4 @@ RUN curl -s -o go.mod https://raw.githubusercontent.com/animenotifier/notify.moe rm go.* # Create empty working directory -WORKDIR /home/developer/notify.moe \ No newline at end of file +WORKDIR /host \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index e4d3c374..d7d95cac 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,12 +1,15 @@ -version: "3" +version: "3.4" services: notify.moe: - build: . + build: + context: . + network: host image: animenotifier/notify.moe stdin_open: true tty: true network_mode: host ports: + - "80:4000" - "443:4001" volumes: - - .:/home/developer/notify.moe \ No newline at end of file + - ~:/host \ No newline at end of file