2023-03-03 04:47:08 +02:00
|
|
|
version: "3.8"
|
2022-05-20 01:30:47 +02:00
|
|
|
|
2023-10-19 00:02:42 +02:00
|
|
|
name: "immich-test-e2e"
|
2023-10-06 23:32:28 +02:00
|
|
|
|
2022-05-20 01:30:47 +02:00
|
|
|
services:
|
2023-10-19 00:02:42 +02:00
|
|
|
immich-server:
|
|
|
|
image: immich-server-dev:latest
|
2022-05-20 01:30:47 +02:00
|
|
|
build:
|
2023-11-18 06:13:36 +02:00
|
|
|
context: ../
|
|
|
|
dockerfile: server/Dockerfile
|
|
|
|
target: dev
|
2022-11-11 06:22:17 +02:00
|
|
|
command: npm run test:e2e
|
2022-05-20 01:30:47 +02:00
|
|
|
volumes:
|
|
|
|
- ../server:/usr/src/app
|
|
|
|
- /usr/src/app/node_modules
|
|
|
|
environment:
|
2023-10-19 00:02:42 +02:00
|
|
|
- DB_HOSTNAME=database
|
2023-10-06 23:32:28 +02:00
|
|
|
- DB_USERNAME=postgres
|
|
|
|
- DB_PASSWORD=postgres
|
|
|
|
- DB_DATABASE_NAME=e2e_test
|
|
|
|
- IMMICH_RUN_ALL_TESTS=true
|
2022-05-20 01:30:47 +02:00
|
|
|
depends_on:
|
2023-10-19 00:02:42 +02:00
|
|
|
- database
|
2023-10-06 23:32:28 +02:00
|
|
|
|
2023-10-19 00:02:42 +02:00
|
|
|
database:
|
2023-11-15 04:34:42 +02:00
|
|
|
image: postgres:14-alpine@sha256:50d9be76e9a90da4c781554955e0ffc79d9d5c4226838e64b36aacc97cbc35ad
|
2023-10-19 00:02:42 +02:00
|
|
|
command: -c fsync=off
|
2022-05-20 01:30:47 +02:00
|
|
|
environment:
|
2023-10-06 23:32:28 +02:00
|
|
|
POSTGRES_PASSWORD: postgres
|
|
|
|
POSTGRES_USER: postgres
|
|
|
|
POSTGRES_DB: e2e_test
|
|
|
|
logging:
|
|
|
|
driver: none
|