how to define network type? (resolved)

Hi, I have been running Immich for awhile, such a great app 👍. I have Immich hosted on a UNRAID server using the official Docker-compose stack and env file. Recently I have set up VLANS within my local network and decided to move some front facing apps onto an isolated network. Normally I would set the network type via the unraid container template as per the attached image How would I set this for the Immich compose stack?
No description
5 Replies
bo0tzz
bo0tzz2y ago
The docker networks are internal to the machine they're running on, you shouldn't need to set a vlan for those
keyboarddabbler
keyboarddabblerOP2y ago
By default unRAID, the VMs and Docker containers all run within the same network as you suggest, however. unRAID allows you to isolate VMs and Docker containers even further to run on their own network environment completely separated from the unRAID server. As in the image I currently have gitea running on the vlan tag 80.
Allram
Allram2y ago
This is how i have defined the network on UnRaid. br0.30 is my Dockernet on a separate VLAN in UnRaid:
immich-proxy:
container_name: immich_proxy
image: ghcr.io/immich-app/immich-proxy:${IMMICH_VERSION:-release}
environment:
# Make sure these values get passed through from the env file
- TZ=Europe/Oslo
- IMMICH_SERVER_URL
- IMMICH_WEB_URL
ports:
- 2283:2283
depends_on:
- immich-server
- immich-web
restart: always
networks:
immich:
ipv4_address: 192.168.30.23



networks:
immich:
name: br0.30
external: true
immich-proxy:
container_name: immich_proxy
image: ghcr.io/immich-app/immich-proxy:${IMMICH_VERSION:-release}
environment:
# Make sure these values get passed through from the env file
- TZ=Europe/Oslo
- IMMICH_SERVER_URL
- IMMICH_WEB_URL
ports:
- 2283:2283
depends_on:
- immich-server
- immich-web
restart: always
networks:
immich:
ipv4_address: 192.168.30.23



networks:
immich:
name: br0.30
external: true
And then keep adding the :
networks:
immich:
ipv4_address: xxxxxxxxx
networks:
immich:
ipv4_address: xxxxxxxxx
To the other containers.
keyboarddabbler
keyboarddabblerOP2y ago
Awesome, thankyou for taking the time to share your compose file. This looks like what I am trying to achieve. I will try the changes this evening and report back. Update: confirmed working
dremedevp
dremedevp2y ago
I am trying to do the same thing but, running into issue, after have assigned the container to a network, ips gets assigned to them but when I try to access the web ui with ip_address:port its refusing connection

Did you find this page helpful?