Updated container networking.

This commit is contained in:
Raphaël Numbus
2026-02-20 11:04:09 +01:00
parent 61d0fbd339
commit 40265e8c81
6 changed files with 28 additions and 91 deletions
+7 -23
View File
@@ -21,10 +21,9 @@ helper.mkPodmanService {
hostname: immich-server
user: '1000:1000'
networks:
immich_frontend:
immich_backend:
immich:
ports:
- "${cfg.port}:2283/tcp" #http
- "${cfg.port}:2283/tcp"
volumes:
- ${cfg.dataDir}:/data
- /etc/localtime:/etc/localtime:ro
@@ -40,14 +39,13 @@ helper.mkPodmanService {
cap_drop:
- NET_RAW
restart: unless-stopped
immich-machine-learning:
image: ghcr.io/immich-app/immich-machine-learning:latest
container_name: immich-machine-learning
hostname: immich-machine-learning
user: '1000:1000'
networks:
immich_backend:
immich:
volumes:
- ${cfg.configDir}/machine-learning:/cache
env_file:
@@ -59,14 +57,13 @@ helper.mkPodmanService {
cap_drop:
- NET_RAW
restart: unless-stopped
immich-redis:
image: docker.io/valkey/valkey:8-bookworm
container_name: immich-redis
hostname: immich-redis
user: '1000:1000'
networks:
immich_backend:
immich:
healthcheck:
test: redis-cli ping || exit 1
security_opt:
@@ -74,14 +71,13 @@ helper.mkPodmanService {
cap_drop:
- NET_RAW
restart: unless-stopped
immich-database:
image: ghcr.io/immich-app/postgres:14
container_name: immich-database
hostname: immich-database
user: '1000:1000'
networks:
immich_backend:
immich:
shm_size: 128mb
volumes:
- ${cfg.configDir}/database:/var/lib/postgresql/data
@@ -97,21 +93,9 @@ helper.mkPodmanService {
cap_drop:
- NET_RAW
restart: unless-stopped
networks:
immich_frontend:
name: immich_frontend
immich:
name: immich
driver: bridge
ipam:
config:
- subnet: "10.89.7.0/24"
gateway: "10.89.7.254"
immich_backend:
name: immich_backend
driver: bridge
ipam:
config:
- subnet: "10.89.8.0/24"
gateway: "10.89.8.254"
'';
}