Skip to content

Commit

Permalink
adds Docker support
Browse files Browse the repository at this point in the history
  • Loading branch information
converge committed May 11, 2019
1 parent c320eaa commit 0a8cafa
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
./node_modules
./screenshots
.env.*
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM alpine:3.9
WORKDIR /app
COPY package.json .
COPY package-lock.json .
RUN apk update; apk add npm; npm install
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
## Docker Setup

### 1. Project Setup

Follow the instructions at: [Project Setup](#project-setup)

### 2. Run Docker Compose

```bash
docker-compose -f docker-compose.yml up
```

Wait until you see the "Compiled successfully!" message, and load it at http://localhost:3000

## MacOS Install

### 1. Install Project Dependencies:
Expand Down
21 changes: 21 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: '3'
services:
frontend:
# set image to be used
image:
instapy-dashboard
# set where Dockerfile is located
build: .
container_name: 'instapy-dashboard-container'
# React and Node ports (dev mode)
ports:
- '3000:3000'
- '3001:3001'
volumes:
- ./__tests__:/app/__tests__/
- ./public:/app/public/
- ./src:/app/src/
- .env:/app/.env
- ${INSTAPY_FOLDER}:${INSTAPY_FOLDER}
# start frontend and backend
command: npm start

0 comments on commit 0a8cafa

Please sign in to comment.