mirror of
https://github.com/immich-app/immich.git
synced 2024-11-16 02:18:50 -07:00
b359dc3cb6
* WIP fix user e2e tests The e2e tests still don't seem to work due to migrations not running. Changes: - update user.e2e tests to use new `userService.createUser` method - fix server `typeorm` command to use ORM config - update make test-e2e to re-create database volume every time - add User DTO - update auth.service and user.service to use User DTO - update CreateUserDto making optional properties that are optional * Fix migrations - add missing `.ts` extension to migrations path - update user e2e test for the new returned User resource
51 lines
994 B
YAML
51 lines
994 B
YAML
version: "3.8"
|
|
|
|
services:
|
|
immich_server_test:
|
|
image: immich-server-dev:1.9.0
|
|
build:
|
|
context: ../server
|
|
dockerfile: Dockerfile
|
|
command: npm run test:e2e
|
|
expose:
|
|
- "3000"
|
|
volumes:
|
|
- ../server:/usr/src/app
|
|
- /usr/src/app/node_modules
|
|
env_file:
|
|
- .env.test
|
|
environment:
|
|
- NODE_ENV=development
|
|
depends_on:
|
|
- redis
|
|
- database
|
|
networks:
|
|
- immich_network_test
|
|
|
|
|
|
redis:
|
|
container_name: immich_redis_test
|
|
image: redis:6.2
|
|
networks:
|
|
- immich_network_test
|
|
|
|
database:
|
|
container_name: immich_postgres_test
|
|
image: postgres:14
|
|
env_file:
|
|
- .env.test
|
|
environment:
|
|
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
|
POSTGRES_USER: ${DB_USERNAME}
|
|
POSTGRES_DB: ${DB_DATABASE_NAME}
|
|
PG_DATA: /var/lib/postgresql/data
|
|
volumes:
|
|
- /var/lib/postgresql/data
|
|
ports:
|
|
- 5432:5432
|
|
networks:
|
|
- immich_network_test
|
|
|
|
networks:
|
|
immich_network_test:
|