Add indexdir volume to docker-compose

Make the indexdir data persistent and shared with Flask for searching pastes.
This commit is contained in:
Jason Hedden 2019-03-13 17:05:54 -05:00
parent 85d2ea578c
commit 9279f56048

View file

@ -37,6 +37,7 @@ services:
volumes: volumes:
- ./CRAWLED_SCREENSHOT/:/opt/AIL/CRAWLED_SCREENSHOT - ./CRAWLED_SCREENSHOT/:/opt/AIL/CRAWLED_SCREENSHOT
- ./PASTES/:/opt/AIL/PASTES - ./PASTES/:/opt/AIL/PASTES
- ./indexdir:/opt/AIL/indexdir
- ./bin/packages/config.cfg:/opt/AIL/bin/packages/config.cfg:ro - ./bin/packages/config.cfg:/opt/AIL/bin/packages/config.cfg:ro
working_dir: /opt/AIL/var/www working_dir: /opt/AIL/var/www
log-queue: log-queue:
@ -308,6 +309,7 @@ services:
image: ail-framework image: ail-framework
volumes: volumes:
- ./PASTES/:/opt/AIL/PASTES - ./PASTES/:/opt/AIL/PASTES
- ./indexdir:/opt/AIL/indexdir
- ./bin/packages/config.cfg:/opt/AIL/bin/packages/config.cfg:ro - ./bin/packages/config.cfg:/opt/AIL/bin/packages/config.cfg:ro
working_dir: /opt/AIL/bin working_dir: /opt/AIL/bin
script-keys: script-keys:
@ -321,7 +323,7 @@ services:
- ./PASTES/:/opt/AIL/PASTES - ./PASTES/:/opt/AIL/PASTES
- ./bin/packages/config.cfg:/opt/AIL/bin/packages/config.cfg:ro - ./bin/packages/config.cfg:/opt/AIL/bin/packages/config.cfg:ro
working_dir: /opt/AIL/bin working_dir: /opt/AIL/bin
script-liblinjection: script-libinjection:
depends_on: depends_on:
- redis-log - redis-log
entrypoint: entrypoint: