-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/docker network #777
base: develop
Are you sure you want to change the base?
Fix/docker network #777
Changes from all commits
2aa8be5
4f0aadf
961effc
aec64b4
5762da9
dee3702
9f12817
79dc5c2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
POSTGRES_USER=postgres | ||
POSTGRES_PASSWORD=postgres | ||
POSTGRES_HOST=localhost | ||
POSTGRES_HOST=protectedplanet-db | ||
POSTGRES_DBNAME=pp_development | ||
POSTGRES_MULTIPLE_EXTENSIONS=postgis,hstore,postgis_topology | ||
REDIS_URL=redis://localhost:6379/0 | ||
ELASTIC_SEARCH_URL=http://elastic:elastic@localhost:9200 | ||
WEBPACKER_DEV_SERVER_HOST=localhost | ||
REDIS_URL=redis://protectedplanet-redis:6379/0 | ||
ELASTIC_SEARCH_URL=http://elastic:elastic@protectedplanet-elasticsearch:9200 | ||
WEBPACKER_DEV_SERVER_HOST=protectedplanet-webpacker | ||
xpack.security.enabled=false | ||
discovery.type=single-node | ||
RAILS_ENV=development | ||
NODE_ENV=development | ||
PP_HOST=localhost:3000 | ||
|
||
API_PATH=. | ||
SSH_AUTH_SOCK=/ssh-agent |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,10 +9,14 @@ services: | |
- protectedplanet_node_modules:/ProtectedPlanet/node_modules | ||
- protectedplanet_import_data:/import_data | ||
- protectedplanet_bundler:/usr/local/bundle | ||
- ${SSH_AUTH_SOCK}:${SSH_AUTH_SOCK} | ||
network_mode: host | ||
# - /run/host-services/ssh-auth.sock:/ssh-agent # Use this setting for Mac OS X and comment out ${SSH_AUTH_SOCK}:/ssh-agent below | ||
- ${SSH_AUTH_SOCK}:/ssh-agent | ||
ports: | ||
- "3000:3000" | ||
networks: | ||
- protectedplanet | ||
environment: | ||
- SSH_AUTH_SOCK=${SSH_AUTH_SOCK} | ||
- SSH_AUTH_SOCK=/ssh-agent | ||
env_file: | ||
- '.env' | ||
depends_on: | ||
|
@@ -25,7 +29,10 @@ services: | |
db: | ||
container_name: protectedplanet-db | ||
image: kartoza/postgis:11.5-2.5 | ||
network_mode: host | ||
ports: | ||
- "5432:5432" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please change to "5432" (without host port), so it won't conflict with host port. This is Jenkins test, no one will connect from the host. |
||
networks: | ||
- protectedplanet | ||
env_file: | ||
- '.env' | ||
volumes: | ||
|
@@ -34,7 +41,10 @@ services: | |
redis: | ||
container_name: protectedplanet-redis | ||
image: redis | ||
network_mode: host | ||
ports: | ||
- "6379:6379" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please change to "6379" (without host port), so it won't conflict with host port. This is Jenkins test, no one will connect from the host. |
||
networks: | ||
- protectedplanet | ||
env_file: | ||
- '.env' | ||
volumes: | ||
|
@@ -45,7 +55,8 @@ services: | |
- .:/ProtectedPlanet | ||
- protectedplanet_node_modules:/ProtectedPlanet/node_modules | ||
- protectedplanet_import_data:/import_data | ||
network_mode: host | ||
networks: | ||
- protectedplanet | ||
depends_on: | ||
- db | ||
- redis | ||
|
@@ -65,18 +76,24 @@ services: | |
memlock: | ||
soft: -1 | ||
hard: -1 | ||
network_mode: host | ||
ports: | ||
- "9200:9200" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please change to "9200" (without host port), so it won't conflict with host port. This is Jenkins test, no one will connect from the host. |
||
networks: | ||
- protectedplanet | ||
env_file: | ||
- '.env' | ||
volumes: | ||
- 'protectedplanet_es_data:/usr/share/elasticsearch/data' | ||
kibana: | ||
image: docker.elastic.co/kibana/kibana:8.6.0 | ||
environment: | ||
- ELASTICSEARCH_HOSTS=http://localhost:9200 | ||
- ELASTICSEARCH_HOSTS=http://protectedplanet-elasticsearch:9200 | ||
env_file: | ||
- '.env' | ||
network_mode: host | ||
ports: | ||
- "5601:5601" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please change to "5601" (without host port), so it won't conflict with host port. This is Jenkins test, no one will connect from the host. |
||
networks: | ||
- protectedplanet | ||
|
||
webpacker: | ||
container_name: protectedplanet-webpacker | ||
|
@@ -88,19 +105,26 @@ services: | |
- .:/ProtectedPlanet | ||
- protectedplanet_node_modules:/ProtectedPlanet/node_modules | ||
- protectedplanet_bundler:/usr/local/bundle | ||
network_mode: host | ||
ports: | ||
- "3035:3035" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please change to "3035" (without host port), so it won't conflict with host port. This is Jenkins test, no one will connect from the host. |
||
networks: | ||
- protectedplanet | ||
|
||
api: | ||
container_name: protectedplanet-api | ||
build: | ||
context: ${API_PATH} | ||
command: /bin/bash -l -c "bundle exec rackup" | ||
command: /bin/bash -l -c "bundle exec rackup --host 0.0.0.0" | ||
volumes: | ||
- ${API_PATH}:/ProtectedPlanetApi | ||
- ${SSH_AUTH_SOCK}:${SSH_AUTH_SOCK} | ||
network_mode: host | ||
# - /run/host-services/ssh-auth.sock:/ssh-agent # Use this setting for Mac OS X and comment out ${SSH_AUTH_SOCK}:/ssh-agent below | ||
- ${SSH_AUTH_SOCK}:/ssh-agent | ||
ports: | ||
- "9292:9292" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please change to "9292" (without host port), so it won't conflict with host port. This is Jenkins test, no one will connect from the host. |
||
networks: | ||
- protectedplanet | ||
environment: | ||
- SSH_AUTH_SOCK=${SSH_AUTH_SOCK} | ||
- SSH_AUTH_SOCK=/ssh-agent | ||
env_file: | ||
- ${API_PATH}/.env | ||
depends_on: | ||
|
@@ -109,6 +133,9 @@ services: | |
tty: true | ||
profiles: ['api'] | ||
|
||
networks: | ||
protectedplanet: | ||
driver: bridge | ||
|
||
volumes: | ||
protectedplanet_pg_data: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change to "3000" (without host port), so it won't conflict with host port. This is Jenkins test, no one will connect from the host.