2022-05-19 16:30:47 -07:00
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
services:
|
2022-07-16 21:43:31 -07:00
|
|
|
immich-server-test:
|
|
|
|
image: immich-server-test
|
2022-05-19 16:30:47 -07:00
|
|
|
build:
|
|
|
|
context: ../server
|
|
|
|
dockerfile: Dockerfile
|
2022-08-20 22:37:55 -07:00
|
|
|
target: builder
|
2022-05-19 16:30:47 -07:00
|
|
|
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:
|
2022-07-16 21:43:31 -07:00
|
|
|
- immich-redis-test
|
|
|
|
- immich-database-test
|
|
|
|
networks:
|
|
|
|
- immich-test-network
|
|
|
|
immich-redis-test:
|
|
|
|
container_name: immich-redis-test
|
2022-05-19 16:30:47 -07:00
|
|
|
image: redis:6.2
|
2022-07-16 21:43:31 -07:00
|
|
|
networks:
|
|
|
|
- immich-test-network
|
|
|
|
immich-database-test:
|
|
|
|
container_name: immich-database-test
|
2022-05-19 16:30:47 -07:00
|
|
|
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 09:16:03 -07:00
|
|
|
- /var/lib/postgresql/data
|
2022-07-16 21:43:31 -07:00
|
|
|
networks:
|
|
|
|
- immich-test-network
|
|
|
|
|
|
|
|
networks:
|
|
|
|
immich-test-network:
|