Skip to content

Commit

Permalink
Use a hostname to connect to the database, and add that hostname when…
Browse files Browse the repository at this point in the history
… we start the docker container
  • Loading branch information
frezik committed Jul 21, 2021
1 parent 89219aa commit 2533d1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ node {
conf.postgresql.passwd = RFID_DB_PASSWORD
conf.postgresql.username = 'doorbot'
conf.postgresql.database = 'doorbot-' + project_uuid
conf.postgresql.host = '10.0.4.164'
conf.postgresql.host = 'database'
conf.postgresql.port = 5432
conf.build_id = env.BUILD_ID
conf.build_branch = env.BRANCH_NAME
Expand Down
1 change: 1 addition & 0 deletions start_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ echo "Starting ${NAME}"
docker run \
-p 5000:5000 \
-d --name=${CONTAINER_NAME} \
--add-host=database:10.0.4.164 \
docker.shop.thebodgery.org/${NAME}

0 comments on commit 2533d1a

Please sign in to comment.