2023-03-03 04:47:08 +02:00
|
|
|
version: "3.8"
|
2022-05-20 01:30:47 +02:00
|
|
|
|
|
|
|
services:
|
2022-07-17 06:43:31 +02:00
|
|
|
immich-server-test:
|
|
|
|
image: immich-server-test
|
2022-05-20 01:30:47 +02:00
|
|
|
build:
|
|
|
|
context: ../server
|
|
|
|
dockerfile: Dockerfile
|
2022-08-21 07:37:55 +02:00
|
|
|
target: builder
|
2022-11-11 06:22:17 +02:00
|
|
|
command: npm run test:e2e
|
2022-05-20 01:30:47 +02:00
|
|
|
expose:
|
2023-03-03 04:47:08 +02:00
|
|
|
- "3000"
|
2022-05-20 01:30:47 +02:00
|
|
|
volumes:
|
|
|
|
- ../server:/usr/src/app
|
|
|
|
- /usr/src/app/node_modules
|
|
|
|
env_file:
|
|
|
|
- .env.test
|
|
|
|
environment:
|
|
|
|
- NODE_ENV=development
|
2023-03-03 04:47:08 +02:00
|
|
|
- TYPESENSE_ENABLED=false
|
2022-05-20 01:30:47 +02:00
|
|
|
depends_on:
|
2022-07-17 06:43:31 +02:00
|
|
|
- immich-redis-test
|
|
|
|
- immich-database-test
|
|
|
|
networks:
|
|
|
|
- immich-test-network
|
|
|
|
immich-redis-test:
|
|
|
|
container_name: immich-redis-test
|
2023-06-19 03:51:46 +02:00
|
|
|
image: redis:6.2-alpine@sha256:70a7a5b641117670beae0d80658430853896b5ef269ccf00d1827427e3263fa3
|
2022-07-17 06:43:31 +02:00
|
|
|
networks:
|
|
|
|
- immich-test-network
|
|
|
|
immich-database-test:
|
|
|
|
container_name: immich-database-test
|
2023-06-19 03:51:46 +02:00
|
|
|
image: postgres:14-alpine@sha256:28407a9961e76f2d285dc6991e8e48893503cc3836a4755bbc2d40bcc272a441
|
2022-05-20 01:30:47 +02:00
|
|
|
env_file:
|
|
|
|
- .env.test
|
|
|
|
environment:
|
|
|
|
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
|
|
|
POSTGRES_USER: ${DB_USERNAME}
|
|
|
|
POSTGRES_DB: ${DB_DATABASE_NAME}
|
|
|
|
volumes:
|
2022-06-06 18:16:03 +02:00
|
|
|
- /var/lib/postgresql/data
|
2022-07-17 06:43:31 +02:00
|
|
|
networks:
|
|
|
|
- immich-test-network
|
|
|
|
|
|
|
|
networks:
|
|
|
|
immich-test-network:
|