Skip to content

Commit

Permalink
Merge pull request #503 from UCLALibrary/close-ports
Browse files Browse the repository at this point in the history
Only allow localhost to access exposed docker ports.
  • Loading branch information
jendiamond authored Nov 13, 2019
2 parents 3145bb5 + d80619e commit 3689932
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions docker-compose-standalone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ services:
SOLR_URL: http://solr:8983/solr/calursus
SOLR_TEST_URL: http://solr_test:8983/solr/calursus
ports:
- "3003:3000"
- "127.0.0.1:3003:3000"
volumes:
- .:/ursus
- bundle_dir:/usr/local/bundle
Expand All @@ -28,19 +28,19 @@ services:
- ./docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
- mysql_data:/var/lib/mysql
ports:
- 3306:3306
- "127.0.0.1:3306:3306"
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"

solr:
image: uclalibrary/solr-ursus
ports:
- 8983:8983
- "127.0.0.1:8983:8983"

solr_test:
image: uclalibrary/solr-ursus
ports:
- 8985:8983
- "127.0.0.1:8985:8983"
dockerhost:
image: qoomon/docker-host
cap_add: [ 'NET_ADMIN', 'NET_RAW' ]
Expand Down
2 changes: 1 addition & 1 deletion docker-compose-with-californica.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ services:
SOLR_URL: http://solr:8983/solr/californica
SOLR_TEST_URL: http://solr_test:8983/solr/californica
ports:
- "3003:3000"
- "127.0.0.1:3003:3000"
volumes:
- .:/ursus
- bundle_dir:/usr/local/bundle
Expand Down

0 comments on commit 3689932

Please sign in to comment.