Skip to content
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

add mongodb containers and depended libraries #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,19 @@ services:
ports:
- "1025:1025"
- "8025:8025"

mongo:
image: mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: password

mongo-express:
image: mongo-express
restart: always
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: password
6 changes: 6 additions & 0 deletions php-cli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,9 @@ RUN mkdir -p /var/www/.ssh && \
chmod 600 /var/www/.ssh/known_hosts

CMD ["/bin/bash"]

# enable libraries for mongodb
RUN apt-get install -y libcurl4-openssl-dev pkg-config libssl-dev \
&& pecl install mongodb \
&& docker-php-ext-enable mongodb \
&& pecl config-set php_ini /etc/php.ini
6 changes: 6 additions & 0 deletions php/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,9 @@ RUN echo '[Date]\ndate.timezone = "Australia/Melbourne"' >> /usr/local/etc/php/c

COPY php.ini /usr/local/etc/php/php.ini
COPY xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini

# enable libraries for mongodb
RUN apt-get install -y libcurl4-openssl-dev pkg-config libssl-dev \
&& pecl install mongodb \
&& docker-php-ext-enable mongodb \
&& pecl config-set php_ini /etc/php.ini
2 changes: 2 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ The following can be included as needed in the `./du.sh` script.
* __solr__: A solr 5.5 instance - TODO adding custom solr.xml and creating new cores.
* __selenium__: remaps requests to symlocal back to the webserver container.
* __mailhog__: mail capture, web interface. Available on `localhost:8025`.
* __mongo__: MongoDB image (This is dcocker official image - https://hub.docker.com/_/mongo)
* __mongo-express__: web based interface for mongoDB. Available on `localhost:8081`. (This is docker official image - https://hub.docker.com/_/mongo-express)

Note for those containers below that have different versions, simply change the docker-compose file
to reference the older version where needed.
Expand Down