mount app as volume in docker container for local tests

change to overrides
This commit is contained in:
Henry Oswald 2018-02-16 15:45:47 +00:00
parent ece0540318
commit c0058ac720
2 changed files with 18 additions and 3 deletions

View file

@ -1,7 +1,19 @@
version: "2"
services:
base:
dev:
environment:
TEXLIVE_IMAGE: quay.io/sharelatex/texlive-full:2017.1
TEXLIVE_IMAGE_USER: root
SHARELATEX_CONFIG: /app/config/settings.defaults.coffee
COMMAND_RUNNER: docker-runner-sharelatex
COMPILES_HOST_DIR: $PWD/compiles
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./docker-runner:/app/node_modules/docker-runner-sharelatex
- ./compiles:/app/compiles
ci:
environment:
TEXLIVE_IMAGE: quay.io/sharelatex/texlive-full:2017.1
TEXLIVE_IMAGE_USER: root

View file

@ -15,9 +15,12 @@ services:
test_acceptance:
build: .
volumes:
- .:/app
working_dir: /app
extends:
file: base.yml
service: base
file: docker-compose-overrides.yml
service: dev
environment:
REDIS_HOST: redis
MONGO_HOST: mongo