Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 2b066c2

Browse files
Setup docker based deployment
1 parent d54aa89 commit 2b066c2

File tree

5 files changed

+40
-1
lines changed

5 files changed

+40
-1
lines changed

.dockerignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
node_modules
22
.idea
33
**/.DS_Store
4-
docs
54
.env
65
coverage

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ scripts/generate
66
.nyc_output
77
.env
88
coverage
9+
docker/api.env

docker/Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Use the base image with Node.js 12
2+
FROM node:12
3+
4+
# Copy the current directory into the Docker image
5+
COPY . /ubahn_search_ui_api
6+
7+
# Set working directory for future use
8+
WORKDIR /ubahn_search_ui_api
9+
10+
# Install the dependencies from package.json
11+
RUN npm install
12+
CMD npm start

docker/docker-compose.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: '3'
2+
services:
3+
ubahn_search_ui_api:
4+
image: ubahn_search_ui_api:latest
5+
build:
6+
context: ../
7+
dockerfile: docker/Dockerfile
8+
env_file:
9+
- api.env
10+
ports:
11+
- "3001:3001"

docker/sample.api.env

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
API_VERSION=
2+
AUTH_SECRET=
3+
VALID_ISSUERS=
4+
AUTH0_URL=
5+
AUTH0_AUDIENCE=
6+
TOKEN_CACHE_TIME=
7+
AUTH0_CLIENT_ID=
8+
AUTH0_CLIENT_SECRET=
9+
UPLOAD_CREATE_TOPIC=
10+
AWS_ACCESS_KEY_ID=
11+
AWS_SECRET_ACCESS_KEY=
12+
AWS_REGION=
13+
TEMPLATE_S3_BUCKET=
14+
UPLOAD_S3_BUCKET=
15+
EMSI_CLIENT_ID=
16+
EMSI_CLIENT_SECRET=

0 commit comments

Comments
 (0)