Created
January 9, 2018 02:51
-
-
Save br2490/2af533bd49b523fe37b389053e7d25c5 to your computer and use it in GitHub Desktop.
This is a networking issue - docker-compose "on build" doesn't respect the network defined and build on the default bridge. So, first you'll see networks below where I define just a default bridge called "isle-stacknetwork" (it will pickup ISLE from the foldername) and that was either unsuccessful or I didn't pay attention to the error apache th…
This file contains hidden or 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
version: '2' | |
#labels: | |
# org.label-schema.version: "ISLE Alpha 2.0" | |
# org.label-schema.description: "ISLE Base Image with sample site isle.localdomain docker-compose.yml for non-production usage." | |
# org.label-schema.license: "Apache-2.0" | |
# org.label-schema.vcs-url: "[email protected]:Islandora-Collaboration-Group/ISLE.git" | |
# org.label-schema.vendor: "Islandora Collaboration Group (ICG) - [email protected]" | |
# org.label-schema.schema-version: "1.0" | |
services: | |
mysql: | |
build: ./mysql | |
image: islandoracollabgroup/isle-mysql:latest | |
container_name: isle-mysql | |
network_mode: "bridge" | |
# networks: | |
# - stacknetwork | |
environment: | |
- MYSQL_ROOT_PASSWORD=ild_mysqlrt_2018 | |
ports: | |
- "3306:3306" | |
volumes: | |
- db-data:/var/lib/mysql | |
- ./data/mysql/log:/var/log/mysql | |
fedora: | |
build: ./fedora | |
image: islandoracollabgroup/isle-fedora:latest | |
container_name: isle-fedora | |
network_mode: "bridge" | |
# networks: | |
# - stacknetwork | |
ports: | |
- "8080:8080" | |
- "8777:80" | |
tty: true | |
depends_on: | |
- mysql | |
volumes: | |
- fed-data:/usr/local/fedora/data | |
- ./data/fedora/log/fedora:/usr/local/fedora/server/logs | |
- ./data/fedora/log/apache:/var/log/apache2 | |
- ./data/fedora/log/tomcat:/usr/local/tomcat/logs | |
solr: | |
build: ./solr | |
image: islandoracollabgroup/isle-solr:latest | |
container_name: isle-solr | |
network_mode: "bridge" | |
# networks: | |
# - stacknetwork | |
ports: | |
- "8091:8080" | |
- "8983:8983" | |
tty: true | |
volumes: | |
- solr-core:/usr/local/solr/collection1/data | |
- ./data/solr/logs:/usr/local/tomcat/logs | |
apache: | |
build: ./apache | |
image: islandoracollabgroup/isle-apache:latest | |
network_mode: "bridge" | |
# networks: | |
# - stacknetwork | |
environment: | |
- JAVA_HOME=/usr/lib/jvm/java-8-oracle/ | |
- JRE_HOME=/usr/lib/jvm/java-8-oracle/jre | |
- PATH="$PATH:$HOME/.composer/vendor/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/jre/bin" | |
- KAKADU_LIBRARY_PATH=/opt/adore-djatoka-1.1/lib/Linux-x86-64 | |
- KAKADU_HOME=/opt/adore-djatoka-1.1/bin/Linux-x86-64 | |
ports: | |
- "80:80" | |
tty: true | |
depends_on: | |
- mysql | |
- fedora | |
- solr | |
volumes: | |
- www-data:/var/www/html | |
- ./data/apache/log/apache:/var/log/apache2 | |
container_name: isle-apache | |
volumes: | |
db-data: | |
fed-data: | |
solr-core: | |
www-data: | |
networks: | |
stacknetwork: | |
driver: bridge # Really what I wanted to do was use EXTERNAL = true and use the docker default network "bridge" - not allowed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment