2022-05-20 01:30:47 +02:00
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
services:
|
|
|
|
immich_server_test:
|
2022-06-24 05:18:50 +02:00
|
|
|
image: immich-server-dev:latest
|
2022-05-20 01:30:47 +02:00
|
|
|
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
|
|
|
|
|
|
|
|
redis:
|
|
|
|
container_name: immich_redis_test
|
|
|
|
image: redis:6.2
|
|
|
|
|
|
|
|
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:
|
2022-06-06 18:16:03 +02:00
|
|
|
- /var/lib/postgresql/data
|
2022-05-20 01:30:47 +02:00
|
|
|
ports:
|
|
|
|
- 5432:5432
|