From 111fcc919466d12270334e34dda1dc0b79a72158 Mon Sep 17 00:00:00 2001 From: Ville Rantanen Date: Thu, 25 Jan 2018 14:59:34 +0200 Subject: [PATCH] configure local port too --- README.md | 7 ++++--- docker-compose.yaml | 4 ++-- env.example | 1 + 3 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 env.example diff --git a/README.md b/README.md index 8cb2e5d..3814be3 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,13 @@ a very small file sharing website -- configure with data/shares.json -- configure with data/config.json +- configure shares with data/shares.json +- generate shares with utils/create-share.py +- configure service with data/config.json - uid = user id for new files - workers = parallel processes (i.e. one upload reserves a process) - timeout = timeout for processes, single upload might take a long time! -- generate shares with utils/create-share.py +- configure bind host and port in .env - proxy with nginx: ``` location /flees/ { diff --git a/docker-compose.yaml b/docker-compose.yaml index 28159da..a42aa1f 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -6,10 +6,10 @@ services: build: context: code ports: - - 127.0.0.1:8136:80 + - "${FLEES_EXPOSE}:80" volumes: - ./data/:/code/data/ - # restart: always + restart: always diff --git a/env.example b/env.example new file mode 100644 index 0000000..71e64c3 --- /dev/null +++ b/env.example @@ -0,0 +1 @@ +FLEES_EXPOSE=127.0.0.1:8136