Skip to content

Commit

Permalink
update fixing configurability of the nodeJS docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
guFalcon committed Apr 5, 2024
1 parent c04e800 commit 8866894
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/docs-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ jobs:
- name: Fill .env file for deployment
run: |
echo WEBSERVER_PORT=${{ secrets.WEBSERVER_PORT }} >> ./deploy/.env
echo INTERNAL_PORT=${{ secrets.PORT }} >> ./deploy/.env
echo DOCKER_HUB_USER=${{ secrets.DOCKER_HUB_USER }} >> ./deploy/.env
- name: Deploy using SSH 🚛
uses: UnterrainerInformatik/ssh-deploy-action@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ To build, there is a Github action in this repository, but in order to configure
| DOCKER_HUB_PASSWORD | An access-token of your docker-hub account. |
| DOCKER_HUB_USER | The user of your docker-hub account. |
| KEYCLOAK_FILE | The copy-pasted contents of the file you get when you enter your Keycloak-realm as admin -> Client -> Installation -> Keycloak JSON File. |
| PORT | -> `.env`<br>The port your web-server will be accessible when started later on.<br>This variable will be written to a newly generated `.env` file that will reside in the root-directory of the node web-server.<br>So that port is INSIDE this web-servers' docker-image that is created. |
| PORT | -> `.env`<br>The port your web-server will be accessible when started later on (for example: `8080`).<br>This variable will be written to a newly generated `.env` file that will reside in the root-directory of the node web-server.<br>So that port is INSIDE this web-servers' docker-image that is created. |
| WEBSERVER_PORT | This is the EXTERNAL port of the web-server that is created.<br>This port must be unique and accessible on the deployment-machine. |
| VPN_OVPN_FILE | The OVPN file of your Open VPN configuration. This is used to reach the deployment-server (target host) to start conversation via SSH. |
| VPN_PASSWORD | The password of your VPN connection. |
Expand Down
4 changes: 2 additions & 2 deletions deploy/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ version: '3'
services:

test:
image: gufalcon/safe-learn:latest
image: ${DOCKER_HUB_USER}/safe-learn:latest
container_name: safe-learn
restart: unless-stopped
ports:
- "1112:8080"
- "${WEBSERVER_PORT}:${INTERNAL_PORT}"

networks:
default:
Expand Down

0 comments on commit 8866894

Please sign in to comment.