diff --git a/Dockerfile b/Dockerfile index 7d66e27..c01d888 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,7 @@ WORKDIR frontend RUN npm run build WORKDIR ../ -ENV PORT=8080 +#ENV PORT=8080 ENV DATA_DIR=data ENV TYPEORM_CONNECTION=mariadb @@ -36,7 +36,7 @@ ENV TYPEORM_SUBSCRIBERS_DIR=src/subscriber ENV TYPEORM_DRIVER_EXTRA='{"charset": "utf8mb4"}' ENV NODE_ENV=production -EXPOSE 8080 +#EXPOSE 8080 RUN ["chmod", "+x", "dockerentry.sh"] diff --git a/README.md b/README.md index 336478a..b3a3743 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,9 @@ is listening at http://localhost:1234, and koa at http://localhost:3000) The suggested way to host this is, agian, using Docker: you can find a docker-compose example in `dockercomposeexample` folder -### Config options (for docker container) +### Config options + +* `PORT` - web server port * `TYPEORM_HOST` - mariadb hostname @@ -48,6 +50,6 @@ docker-compose example in `dockercomposeexample` folder * `HTTPS` (`"yes"`/`"no"`) - whether the server enforce HTTPS or not -### Config options (the rest of them) +### Additional config options if you're not using docker -* `DATA_DIR` - data directory for photos and uploaded files \ No newline at end of file +* `DATA_DIR` - data directory for photos and uploaded files diff --git a/dockercomposeexample/docker-compose.yml b/dockercomposeexample/docker-compose.yml index 17f48d3..e811fc8 100644 --- a/dockercomposeexample/docker-compose.yml +++ b/dockercomposeexample/docker-compose.yml @@ -9,6 +9,7 @@ services: - ./data:/usr/src/app/data environment: - JWT_SECRET=huegrhuigerhupoiervw + - PORT=8080 env_file: - db.env depends_on: