Add Immich to separate network in order to prevent clashes with WSL host
This commit is contained in:
parent
9e2396ce31
commit
480fcaf6b9
18
immich.yaml
18
immich.yaml
@ -12,6 +12,8 @@ services:
|
||||
- REDIS_HOSTNAME=immich-redis
|
||||
volumes:
|
||||
- <media directory>/Photos:/usr/src/app/upload
|
||||
networks:
|
||||
- immich
|
||||
ports:
|
||||
- 2283:3001
|
||||
depends_on:
|
||||
@ -30,6 +32,8 @@ services:
|
||||
- REDIS_HOSTNAME=immich-redis
|
||||
volumes:
|
||||
- <media directory>/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:
|
||||
- <docker directory>/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:
|
||||
- <docker directory>/immich/postgres:/var/lib/postgresql/data
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- immich
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
immich:
|
||||
name: immich
|
||||
ipam:
|
||||
config:
|
||||
- subnet: <subnet>
|
Loading…
Reference in New Issue
Block a user