Skip to content

Commit

Permalink
rfac: docker-compose file
Browse files Browse the repository at this point in the history
rfac: env.list.example

rfac: contributing.md
  • Loading branch information
yp969803 committed May 15, 2024
1 parent d4bc1ef commit 847a0e1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
7 changes: 3 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,14 @@ cd Tracer
#### Create env.sh from env.sh.example


#### Install node-modules
```
npm ci
```

#### Run Frontend

```
source env.sh
cd frontend
# only first time to install node-modules
npm ci
npm start
```

Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ services:
context: ./frontend
dockerfile: Dockerfile.frontend
container_name: tracer-frontend
network_mode: host
networks:
- network
env_file:
- env.list
ports:
- "3000:3000"
restart: unless-stopped
volumes:
- .:/app


postgres:
image: postgres:latest
Expand Down
2 changes: 1 addition & 1 deletion env.list.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CLIENT_ID=
BACKEND_URL=http://localhost:8080
BACKEND_URL=http://{ip address of system}:8080
AVATAR_API=


Expand Down
3 changes: 1 addition & 2 deletions frontend/Dockerfile.frontend
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@


FROM node:13.12.0-alpine as build

WORKDIR /app
COPY . .
RUN npm install
Expand Down

0 comments on commit 847a0e1

Please sign in to comment.