mirror of
https://github.com/immich-app/immich.git
synced 2025-06-23 15:30:51 -04:00
56 lines
1.6 KiB
YAML
56 lines
1.6 KiB
YAML
name: immich-e2e
|
|
|
|
services:
|
|
immich-server:
|
|
container_name: immich-e2e-server
|
|
command: ['./start.sh']
|
|
image: immich-server:latest
|
|
build:
|
|
context: ../
|
|
dockerfile: server/Dockerfile
|
|
args:
|
|
- BUILD_ID=1234567890
|
|
- BUILD_IMAGE=e2e
|
|
- BUILD_SOURCE_REF=e2e
|
|
- BUILD_SOURCE_COMMIT=e2eeeeeeeeeeeeeeeeee
|
|
environment:
|
|
- DB_HOSTNAME=database
|
|
- DB_USERNAME=postgres
|
|
- DB_PASSWORD=postgres
|
|
- DB_DATABASE_NAME=immich
|
|
- IMMICH_MACHINE_LEARNING_ENABLED=false
|
|
- IMMICH_TELEMETRY_INCLUDE=all
|
|
- IMMICH_ENV=testing
|
|
- IMMICH_PORT=2285
|
|
- IMMICH_IGNORE_MOUNT_CHECK_ERRORS=true
|
|
volumes:
|
|
- ./test-assets:/test-assets
|
|
extra_hosts:
|
|
- 'auth-server:host-gateway'
|
|
depends_on:
|
|
redis:
|
|
condition: service_started
|
|
database:
|
|
condition: service_healthy
|
|
ports:
|
|
- 2285:2285
|
|
|
|
redis:
|
|
image: redis:6.2-alpine@sha256:3211c33a618c457e5d241922c975dbc4f446d0bdb2dc75694f5573ef8e2d01fa
|
|
|
|
database:
|
|
image: ghcr.io/immich-app/postgres:14-vectorchord0.3.0@sha256:9c704fb49ce27549df00f1b096cc93f8b0c959ef087507704d74954808f78a82
|
|
command: -c fsync=off -c shared_preload_libraries=vchord.so -c config_file=/var/lib/postgresql/data/postgresql.conf
|
|
environment:
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_DB: immich
|
|
ports:
|
|
- 5435:5432
|
|
healthcheck:
|
|
test: ['CMD-SHELL', 'pg_isready -U postgres -d immich']
|
|
interval: 1s
|
|
timeout: 5s
|
|
retries: 30
|
|
start_period: 10s
|