From: Joshua May Date: Mon, 14 Oct 2019 01:43:11 +0000 (-0700) Subject: Mounting the code dir in Docker for dev/test, tightens up them feedback loops X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=0035ecf1216031fb9902ef9ea3a3bdb89ba64edb;p=sirius.git Mounting the code dir in Docker for dev/test, tightens up them feedback loops --- diff --git a/Dockerfile b/Dockerfile index 11c3390..ddf2df0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,7 +20,7 @@ RUN apt-get update -y && \ phantomjs \ wget \ postgresql-11 \ - git + git RUN apt-get autoremove -y diff --git a/docker-compose.development.yml b/docker-compose.development.yml index 3e212d0..9bc1383 100644 --- a/docker-compose.development.yml +++ b/docker-compose.development.yml @@ -8,6 +8,8 @@ services: - VIRTUAL_HOST=sirius.localhost - DATABASE_URL=postgresql://postgres:plop@sirius-database/sirius-dev - OAUTHLIB_INSECURE_TRANSPORT=1 + volumes: + - ./:/sirius sirius-database: ports: diff --git a/docker-compose.test.yml b/docker-compose.test.yml index ca02c6d..3167108 100644 --- a/docker-compose.test.yml +++ b/docker-compose.test.yml @@ -9,6 +9,8 @@ services: command: "bin/wait-for-it.sh sirius-database-test:5432 -- bin/docker-entrypoint.sh" environment: - DATABASE_URL=postgresql://postgres:plop@sirius-database-test/sirius-test + volumes: + - ./:/sirius sirius-database-test: container_name: sirius-database-test