diff --git a/immich.yaml b/immich.yaml index 13e567a..ee8df34 100644 --- a/immich.yaml +++ b/immich.yaml @@ -12,6 +12,8 @@ services: - REDIS_HOSTNAME=immich-redis volumes: - /Photos:/usr/src/app/upload + networks: + - immich ports: - 2283:3001 depends_on: @@ -30,6 +32,8 @@ services: - REDIS_HOSTNAME=immich-redis volumes: - /Photos:/usr/src/app/upload + networks: + - immich depends_on: - redis - database @@ -39,10 +43,14 @@ services: image: ghcr.io/immich-app/immich-machine-learning:release volumes: - /immich/model-cache:/cache + networks: + - immich restart: unless-stopped redis: container_name: immich-redis image: redis:6.2-alpine@sha256:51d6c56749a4243096327e3fb964a48ed92254357108449cb6e23999c37773c5 + networks: + - immich restart: unless-stopped database: container_name: immich-postgres @@ -53,4 +61,12 @@ services: POSTGRES_DB: volumes: - /immich/postgres:/var/lib/postgresql/data - restart: unless-stopped \ No newline at end of file + networks: + - immich + restart: unless-stopped +networks: + immich: + name: immich + ipam: + config: + - subnet: \ No newline at end of file