Last active
January 14, 2020 02:40
-
-
Save cmabastar/92e755f39f641f7fbde43c33d8e83eae to your computer and use it in GitHub Desktop.
SugarDockerized
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/backend/docker-compose.yml b/backend/docker-compose.yml | |
index c45ae579..c47fcf14 100644 | |
--- a/backend/docker-compose.yml | |
+++ b/backend/docker-compose.yml | |
@@ -46,6 +46,9 @@ services: | |
- new_db | |
- redis | |
# - corenlp | |
+ networks: | |
+ - default | |
+ - some-net | |
main_webserver_ssl: | |
build: | |
@@ -108,3 +111,7 @@ services: | |
environment: | |
FLASK_APP: proxy/__init__.py | |
FLASK_DEBUG: 1 | |
+ | |
+networks: | |
+ some-net: | |
+ driver: bridge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/data/app/sugar/.gitkeep b/data/app/sugar/.gitkeep | |
deleted file mode 100644 | |
index e69de29..0000000 | |
diff --git a/stacks/sugar710/php71.yml b/stacks/sugar710/php71.yml | |
index 919bb84..75f6632 100755 | |
--- a/stacks/sugar710/php71.yml | |
+++ b/stacks/sugar710/php71.yml | |
@@ -6,7 +6,7 @@ services: | |
image: sugar79_php71_web | |
build: ../../images/php/71/apache | |
ports: | |
- - "80:80" | |
+ - "8880:80" | |
extra_hosts: | |
- "docker.local:127.0.0.1" | |
volumes: | |
@@ -20,6 +20,9 @@ services: | |
- mysql | |
- elasticsearch | |
- redis | |
+ networks: | |
+ - default | |
+ - backend_some-net | |
cron: | |
container_name: "sugar-cron" | |
image: sugar79_php71_cron | |
@@ -71,3 +74,7 @@ services: | |
build: ../../images/permissions | |
volumes: | |
- ../../data/app:/var/www/html | |
+ | |
+networks: | |
+ backend_some-net: | |
+ external: true | |
diff --git a/stacks/sugar79/php71.yml b/stacks/sugar79/php71.yml | |
index ce4272a..86d277c 100755 | |
--- a/stacks/sugar79/php71.yml | |
+++ b/stacks/sugar79/php71.yml | |
@@ -20,6 +20,9 @@ services: | |
- mysql | |
- elasticsearch | |
- redis | |
+ networks: | |
+ - default | |
+ - backend_some-net | |
cron: | |
container_name: "sugar-cron" | |
image: sugar79_php71_cron | |
@@ -64,3 +67,7 @@ services: | |
build: ../../images/permissions | |
volumes: | |
- ../../data/app:/var/www/html | |
+ | |
+networks: | |
+ backend_some-net: | |
+ external: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Setting CRM datasource credentials
Inspect the bridge of
some-net
Use the
sugar-web1
IP address for your crm data source. (e.g. "http://172.19.0.3/sugar/")Frequent Errors
If you get wrong credentials, Try changing the
settings.SUGARCRM_API_PLATFORM
tomobile
Socket unreachable: You must specify the correct IP address outputted in the inspect . (Ip address allocation may change upon running/tearing down docker)
If you are running worker/celery, add the same interface network into it's
docker-compose.yml
settings