Updated container networking.
This commit is contained in:
@@ -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"
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user