Skip to content

Commit bb9cc72

Browse files
it was created a docker-compose file for development purpose. It's facilitate server execution with no necessity of using solid-test script
1 parent 9114c43 commit bb9cc72

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ FROM node:lts
44
RUN mkdir -p /usr/src/app
55
WORKDIR /usr/src/app
66
COPY package.json /usr/src/app/
7+
COPY package-lock.json /usr/src/app/
78
RUN npm install
89
COPY . /usr/src/app
910

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,15 @@ We have automatic builds set up, so commits to master will trigger a build of ht
239239

240240
If you want to use Docker in development, then you can build it locally with:
241241

242+
Using docker-compose
243+
```bash
244+
git clone https://github.com/solid/node-solid-server
245+
cd node-solid-server
246+
docker-compose up -d
247+
```
248+
249+
or build image manually and run it:
250+
242251
```bash
243252
git clone https://github.com/solid/node-solid-server
244253
cd node-solid-server

docker-compose.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: "3"
2+
services:
3+
solid-server:
4+
build: .
5+
container_name: solid
6+
ports:
7+
- "8443:8443"
8+
entrypoint: npm run solid start -- --no-reject-unauthorized
9+
environment:
10+
- NODE_TLS_REJECT_UNAUTHORIZED=0

0 commit comments

Comments
 (0)