mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
* 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
41 lines
756 B
YAML
41 lines
756 B
YAML
version: "3.4"
|
|
|
|
services:
|
|
mailserver:
|
|
image: djfarrelly/maildev
|
|
ports:
|
|
- 1080:80
|
|
networks:
|
|
- hc-network
|
|
webapp:
|
|
build:
|
|
context: webapp
|
|
target: build-and-test
|
|
volumes:
|
|
- ./webapp:/nitro-web
|
|
command: yarn run dev
|
|
backend:
|
|
build:
|
|
context: backend
|
|
target: build-and-test
|
|
volumes:
|
|
- ./backend:/nitro-backend
|
|
command: yarn run dev
|
|
environment:
|
|
- SMTP_HOST=mailserver
|
|
- SMTP_PORT=25
|
|
- SMTP_IGNORE_TLS=true
|
|
- "DEBUG=${DEBUG}"
|
|
maintenance:
|
|
image: humanconnection/maintenance:latest
|
|
build:
|
|
context: webapp
|
|
dockerfile: Dockerfile.maintenance
|
|
networks:
|
|
- hc-network
|
|
ports:
|
|
- 3503:80
|
|
|
|
networks:
|
|
hc-network:
|