Skip to content

Commit 1dbee5e

Browse files
authored
Merge pull request #1644 from paulorodriguesxv/docker-compose
Created a docker-compose file for development purpose
2 parents 4f60e5d + be9c1de commit 1dbee5e

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
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-3
Original file line numberDiff line numberDiff line change
@@ -237,19 +237,25 @@ We have automatic builds set up, so commits to master will trigger a build of ht
237237

238238
### Development usage
239239

240-
If you want to use Docker in development, then you can build it locally with:
240+
If you want to use Docker in development, you can build and run the image locally with either docker-compose —
241241

242242
```bash
243243
git clone https://github.com/solid/node-solid-server
244244
cd node-solid-server
245-
docker build -t node-solid-server .
245+
docker-compose up -d
246246
```
247247

248-
Run with:
248+
— or these manual commands —
249+
249250
```bash
251+
git clone https://github.com/solid/node-solid-server
252+
cd node-solid-server
253+
docker build -t node-solid-server .
254+
250255
docker run -p 8443:8443 --name solid node-solid-server
251256
```
252257

258+
253259
This will enable you to login to solid on https://localhost:8443 and then create a new account
254260
but not yet use that account. After a new account is made you will need to create an entry for
255261
it in your local (/etc/)hosts file in line with the account and subdomain, i.e. --

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)