Replies: 3 comments 1 reply
|
Try using |
1 reply
|
Today I managed to get it working a little bit:
name: immich
networks:
reverse-proxy:
external: true
immich-net:
services:
immich-server:
container_name: immich_server
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
# extends:
# file: hwaccel.transcoding.yml
# service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- /etc/localtime:/etc/localtime:ro
env_file:
- .env
#ports: # No hacemos el redireccionado del puerto 3001 al 2283
# - 2283:3001
depends_on:
- redis
- database
restart: always
networks:
- reverse-proxy
- immich-net
immich-machine-learning:
container_name: immich_machine_learning
# For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag.
# Example tag: ${IMMICH_VERSION:-release}-cuda
image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
# extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
# file: hwaccel.ml.yml
# service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable
volumes:
- model-cache:/cache
env_file:
- .env
restart: always
networks:
- immich-net
redis:
container_name: immich_redis
image: docker.io/redis:6.2-alpine@sha256:328fe6a5822256d065debb36617a8169dbfbd77b797c525288e465f56c1d392b
healthcheck:
test: redis-cli ping || exit 1
restart: always
networks:
- immich-net
database:
container_name: immich_postgres
image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
POSTGRES_INITDB_ARGS: '--data-checksums'
volumes:
- ${DB_DATA_LOCATION}:/var/lib/postgresql/data
healthcheck:
test: pg_isready --dbname='${DB_DATABASE_NAME}' --username='${DB_USERNAME}' || exit 1; Chksum="$$(psql --dbname='${DB_DATABASE_NAME}' --username='${DB_USERNAME}' --tuples-only --no-align --command='SELECT COALESCE(SUM(checksum_failures), 0) FROM pg_stat_database')"; echo "checksum failure count is $$Chksum"; [ "$$Chksum" = '0' ] || exit 1
interval: 5m
start_interval: 30s
start_period: 5m
command: ["postgres", "-c" ,"shared_preload_libraries=vectors.so", "-c", 'search_path="$$user", public, vectors', "-c", "logging_collector=on", "-c", "max_wal_size=2GB", "-c", "shared_buffers=512MB", "-c", "wal_compression=on"]
restart: always
networks:
- immich-net
volumes:
model-cache:So:
networks:
reverse-proxy: # Creamos esta red visible desde el exterior
external: true
services:
caddy:
container_name: caddy
image: caddy:2.8-alpine
restart: always #unless-stopped # always
cap_add:
- NET_ADMIN
ports:
- '80:80'
- '443:443'
volumes:
- caddy-config:/config
- caddy-data:/data
- $PWD/Caddyfile:/etc/caddy/Caddyfile
#- $PWD/index.html:/usr/share/caddy/index.html
networks:
- reverse-proxy
volumes:
caddy-config:
caddy-data:
external: trueSo that The I am referencing here |
0 replies
|
Some people ending up here might find this issue useful: #11666 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
The bug
Dear all,
thanks a lot for keeping up this wonderful project. I have average experience with docker and caddy.
I am unable to have a full dockerized setup including caddy as a reverse proxy and immich.
I tested the example found in the documentation and it works only when caddy is launched from the cli (not from a container)
On my vps, caddy is already working, reverse proxying other services with success.
Tried several modifications to the official immich docker compose file without success.
Suggestion: A full example with reverse proxy docker compose in the documentation would be very useful
The OS that Immich Server is running on
Ubuntu 22.04
Version of Immich Server
v1.94.1
Version of Immich Mobile App
not tested
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
I usually run caddy on a container with a Caddyfile reverse proxying the container service hostname, eg:
Caddyfile:
whoami - docker-compose.yml:
caddy - docker-compose.yml
but trying to have the default immich docker-compose.yml to work with this schema seems to be challenging
networkssection to the immich file breaks the app (missing internal network connections I guess)internalnetwork to every immich service plus thecaddy_reverse_proxytoimmich-serverboots up the container but immich is unreachable from outside using something like:reverse_proxy localhost:2283, the only thing working for me isreverse_proxy http://<vps ip>:2283Using for immich the
docker-compose.ymlfile pasted above gives the following error in caddy:strange enough I dunno where these
172.28.0.5and151.46.179.173come from...All reactions