Skip to content

Commit

Permalink
Refactor deployment (just a few minor things)
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoBiernat committed Sep 29, 2023
1 parent 927afa8 commit 916be4f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 20 deletions.
7 changes: 0 additions & 7 deletions Server/.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,7 @@
POSTGRES_USER=root
POSTGRES_PWD=root
POSTGRES_DB=railtrail
DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PWD}@localhost:5432/${POSTGRES_DB}

# [Initial User]
INIT_USR=railtrail
INIT_PWD=root

# [Server]
SERVER_PORT=8080
NODE_ENV=development

ACCESSTOKEN=secret
9 changes: 0 additions & 9 deletions Server/.env.example

This file was deleted.

8 changes: 4 additions & 4 deletions Server/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
restart: unless-stopped
depends_on:
- postgres
ports: # @Sascha: Je nach Reverse-Proxy Situation hier bitte den Port anpassen:
ports:
- "8080:8080"
environment:
# - "NODE_ENV=production" # See: https://expressjs.com/en/guide/error-handling.html#the-default-error-handler
Expand All @@ -24,19 +24,19 @@ services:
- POSTGRES_DB=${POSTGRES_DB}
expose:
- 5432
volumes: # @Sascha: Je nachdem, ob du Bind-Mounts oder Docker-Managed Volumes bevorzugst, bitte hier ändern.
volumes:
- railtrail-database:/var/lib/postgresql/data
networks:
- railtrail

railtrail-website:
image: ghcr.io/kieler/railtrail-website:development
restart: unless-stopped
ports: # @Sascha: Je nach Reverse-Proxy Situation hier bitte den Port anpassen:
ports:
- "80:3000"
environment:
- PORT=3000
- BACKEND_URI=http://railtrail-backend:8080 # @Sascha: Je nach Reverse-Proxy Situation hier bitte die URI anpassen. Ohne Anführungsstriche o.ä.:
- BACKEND_URI=http://railtrail-backend:8080
networks:
- railtrail

Expand Down

0 comments on commit 916be4f

Please sign in to comment.