diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 00000000..de47a71e --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,24 @@ +version: "2" +services: + redis: + image: redis:latest + container_name: "redis-dock" + user: "redis" + ports: + - "6379:6379" + expose: + - "6379" + networks: + - scrumblr-net + node: + image: "scrumblr:latest" + container_name: "scrumblr" + user: "node" + ports: + - "1000:1000" + networks: + - scrumblr-net +networks: + scrumblr-net: + driver: bridge + name: scrumblr-net \ No newline at end of file diff --git a/dockerfile b/dockerfile new file mode 100644 index 00000000..3296508a --- /dev/null +++ b/dockerfile @@ -0,0 +1,9 @@ +FROM node:13.11.0-slim +ENV NODE_ENV=production + +COPY . . + +RUN npm install + +EXPOSE 1000 +CMD node server.js --server:port=1000 --redis:url=redis://redis-dock:6379