Skip to content

Commit

Permalink
working on docker files for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaskoenig committed Aug 15, 2024
1 parent 804385d commit 724de6b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
8 changes: 4 additions & 4 deletions docker-compose-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
# DOCKER COMPOSE DEPLOYMENT
# -----------------------------------------------------------------------------
# build containers
# sudo docker-compose -f docker-compose-production.yml build --no-cache
# sudo docker-compose -f docker-compose-production.yml build
# sudo docker compose -f docker-compose-production.yml build --no-cache
# sudo docker compose -f docker-compose-production.yml build
# serve containers
# sudo docker-compose -f docker-compose-production.yml up
# sudo docker-compose -f docker-compose-production.yml up --detach
# sudo docker compose -f docker-compose-production.yml up
# sudo docker compose -f docker-compose-production.yml up --detach
# -----------------------------------------------------------------------------
volumes:
vue_dist:
Expand Down
3 changes: 2 additions & 1 deletion sbml4humans/Dockerfile-develop
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM node:14.11.0 AS build-stage
FROM node:14 AS build-stage
# RUN apk add g++ make py3-pip
WORKDIR /app
COPY package*.json /app/
RUN npm install
Expand Down
2 changes: 1 addition & 1 deletion sbml4humans/Dockerfile-production
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# build stage
FROM node:14.11.0 AS build-stage
FROM node:14 AS build-stage
WORKDIR /app
COPY package*.json /app/
RUN npm install
Expand Down
6 changes: 5 additions & 1 deletion sbml4humans/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ environment for the SBML4Humans report.

## Project setup for development

### Start backend API and frontend (docker-compose)
### Start backend API and frontend (docker compose)
The simplest setup is to start the frontend and backend via the docker-compose scripts.

```
sudo docker compose -f docker-compose-develop.yml build --no-cache
sudo docker compose -f docker-compose-develop.yml up
```

Alternatively the backend and frontend can be run directly on the machine. This most likely requires updates of the local `node` and `npm` packages.

Expand Down

0 comments on commit 724de6b

Please sign in to comment.