Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docker #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
.env
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM node:18-alpine

WORKDIR /app

COPY package*.json ./

RUN npm ci

COPY . .

ENV WEB_PORT=3000

EXPOSE 3000

CMD ["npm", "start"]
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,37 @@ If you, for example, take a look at the Link XML, you will see the IP, Port and

### **_I do not provide support for installation and hosting!_**

## Docker

### Creating Image

`docker build . -t ls22-oasis`

### Running the image

`docker run -it -e WEB_PORT=3000 -e SERVER_IP=your_server_ip:port -e SERVER_KEY=your_server_key -e DEFAULT_LANGUAGE=de -p 80:3000 ls22-oasis`

### Docker Compose example

```docker
services:
ls22-oasis:
image: bergi9/ls22-oasis:latest
container_name: ls22-oasis
restart: unless-stopped
ports:
- "80:3000"
environment:
WEB_PORT: 3000
SERVER_IP: your_server_ip:port
SERVER_KEY: your_server_key
DEFAULT_LANGUAGE: de
```

### Public Docker Image

`bergi9/ls22-oasis`

## Authors

This project is licensed under GNU Lesser General Public License version 3 (GNU LGPLv3) - see the [LICENSE](LICENSE) file for details.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.