Skip to content

Commit

Permalink
add mongo 4.0 and dev environment
Browse files Browse the repository at this point in the history
  • Loading branch information
pnieto committed Mar 5, 2019
1 parent 66e75c1 commit f06ea6d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
1 change: 1 addition & 0 deletions doc/docker/pumukit/docker-entrypoint.sh
Expand Up @@ -19,6 +19,7 @@ if [ "$1" = 'php-fpm' ] || [ "$1" = 'bin/console' ]; then

if [ "$APP_ENV" != 'prod' ]; then
bin/console doctrine:mongodb:schema:create
bin/console pumukit:init:repo all --force
fi
fi

Expand Down
17 changes: 12 additions & 5 deletions docker-compose.yml
Expand Up @@ -13,8 +13,12 @@ services:
env_file:
- ./doc/docker/.env
volumes:
- ./web/storage:/srv/pumukit/web/storage:rw,cached
- ./web/uploads:/srv/pumukit/web/uploads:rw,cached
# Comment out the next lines in production
# - ./web/storage:/srv/pumukit/web/storage:rw,cached
# - ./web/uploads:/srv/pumukit/web/uploads:rw,cached
# - ./web/bundles:/srv/pumukit/web/bundles:rw,cached
# Comment out the next line for dev
- ./:/srv/pumukit

h2-proxy:
image: teltek/nginx
Expand All @@ -26,14 +30,17 @@ services:
depends_on:
- php
volumes:
- ./web/storage/downloads:/srv/pumukit/web/storage/downloads:ro
- ./web/uploads:/srv/pumukit/web/uploads:ro
# Comment out the next lines in production
# - ./web/storage:/srv/pumukit/web/storage:ro
# - ./web/uploads:/srv/pumukit/web/uploads:ro
# - ./web/bundles:/srv/pumukit/web/bundles:ro
- ./:/srv/pumukit
ports:
- "80:80"
- "443:443"

db:
image: mongo:3.6
image: mongo:4.0
volumes:
- db-data:/data/db:rw

Expand Down

0 comments on commit f06ea6d

Please sign in to comment.