Ocelot-Social/docker-compose.build-and-test.yml
roschaefer 10418f061b Various changes to build pipeline
* Use `production` docker images for cypress tests. As one of our contributors
pointed out: It is bad practice to end-to-end test sth. else than the actual
production images.
* Have a dedicated `docker-compose.travis-integration.yml` to test
backend integration tests. The backend *needs* a database when doing
integration tests. So there is no way around using docker-compose. But
we could stop using the `build-and-test` stage when we do cypress tests.
* Remove a couple of unused ports and DRY `docker-compose.override.yml`
* Build and tag all images first and then run `docker-compose .. up` - I
hope this will not rebuild the image.
* Reduce docker image size
2019-09-12 00:29:36 +02:00

14 lines
280 B
YAML

version: "3.4"
services:
webapp:
image: humanconnection/nitro-web:build-and-test
build:
context: webapp
target: build-and-test
backend:
image: humanconnection/nitro-backend:build-and-test
build:
context: backend
target: build-and-test