2023-03-02 21:47:08 -05:00
|
|
|
version: "3.8"
|
2022-05-19 18:30:47 -05:00
|
|
|
|
2023-10-06 16:32:28 -05:00
|
|
|
# Compose file for dockerized end-to-end testing of the backend
|
|
|
|
|
2022-05-19 18:30:47 -05:00
|
|
|
services:
|
2022-07-16 23:43:31 -05:00
|
|
|
immich-server-test:
|
|
|
|
image: immich-server-test
|
2022-05-19 18:30:47 -05:00
|
|
|
build:
|
|
|
|
context: ../server
|
|
|
|
dockerfile: Dockerfile
|
2022-08-21 00:37:55 -05:00
|
|
|
target: builder
|
2022-11-10 23:22:17 -05:00
|
|
|
command: npm run test:e2e
|
2022-05-19 18:30:47 -05:00
|
|
|
volumes:
|
|
|
|
- ../server:/usr/src/app
|
|
|
|
- /usr/src/app/node_modules
|
|
|
|
environment:
|
2023-10-06 16:32:28 -05:00
|
|
|
- DB_HOSTNAME=immich-database-test
|
|
|
|
- DB_USERNAME=postgres
|
|
|
|
- DB_PASSWORD=postgres
|
|
|
|
- DB_DATABASE_NAME=e2e_test
|
|
|
|
- IMMICH_RUN_ALL_TESTS=true
|
2022-05-19 18:30:47 -05:00
|
|
|
depends_on:
|
2022-07-16 23:43:31 -05:00
|
|
|
- immich-database-test
|
|
|
|
networks:
|
|
|
|
- immich-test-network
|
2023-10-06 16:32:28 -05:00
|
|
|
|
2022-07-16 23:43:31 -05:00
|
|
|
immich-database-test:
|
|
|
|
container_name: immich-database-test
|
2023-06-18 20:51:46 -05:00
|
|
|
image: postgres:14-alpine@sha256:28407a9961e76f2d285dc6991e8e48893503cc3836a4755bbc2d40bcc272a441
|
2022-05-19 18:30:47 -05:00
|
|
|
environment:
|
2023-10-06 16:32:28 -05:00
|
|
|
POSTGRES_PASSWORD: postgres
|
|
|
|
POSTGRES_USER: postgres
|
|
|
|
POSTGRES_DB: e2e_test
|
2022-07-16 23:43:31 -05:00
|
|
|
networks:
|
|
|
|
- immich-test-network
|
2023-10-06 16:32:28 -05:00
|
|
|
logging:
|
|
|
|
driver: none
|
2022-07-16 23:43:31 -05:00
|
|
|
|
|
|
|
networks:
|
|
|
|
immich-test-network:
|