Skip to content

Commit

Permalink
update surf docker-compose.yml
Browse files Browse the repository at this point in the history
 this may require a new release
  • Loading branch information
dale-wahl committed Jul 17, 2024
1 parent 78698f6 commit 13ec0fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker-compose_public_ip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ services:
- 4cat_data:/usr/src/app/data/
- 4cat_config:/usr/src/app/config/
- 4cat_logs:/usr/src/app/logs/
# The -p sets your SERVER_NAME to your public IP
entrypoint: docker/docker-entrypoint.sh -p
# The -h sets your SERVER_NAME to hostname
entrypoint: docker/docker-entrypoint.sh -h

frontend:
image: digitalmethodsinitiative/4cat:${DOCKER_TAG}
Expand All @@ -54,7 +54,7 @@ services:
- backend
ports:
- ${TELEGRAM_PORT}:443
- ${PUBLIC_PORT}:5000
- 8080:5000
volumes:
- 4cat_data:/usr/src/app/data/
- 4cat_config:/usr/src/app/config/
Expand Down
3 changes: 3 additions & 0 deletions docker/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ do
-p ) # set public option to use public IP address as SERVER_NAME
echo 'Setting SERVER_NAME to public IP'
SERVER_NAME=$(curl -s https://api.ipify.org);;
-h ) # set public option to use server hostname as SERVER_NAME
echo 'Setting SERVER_NAME to server hostname'
SERVER_NAME=$(hostnamectl --static);;
* ) # Invalid option
echo "Error: Invalid option"
exit;;
Expand Down

0 comments on commit 13ec0fd

Please sign in to comment.