mirror of
				https://github.com/KevinMidboe/immich.git
				synced 2025-10-29 17:40:28 +00:00 
			
		
		
		
	feat: server containers use host timezone (#4313)
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							98db9331d8
						
					
				
				
					commit
					6d1868a6e0
				
			| @@ -13,6 +13,8 @@ services: | |||||||
|       - ../server:/usr/src/app |       - ../server:/usr/src/app | ||||||
|       - ${UPLOAD_LOCATION}:/usr/src/app/upload |       - ${UPLOAD_LOCATION}:/usr/src/app/upload | ||||||
|       - /usr/src/app/node_modules |       - /usr/src/app/node_modules | ||||||
|  |       - /etc/timezone:/etc/timezone:ro | ||||||
|  |       - /etc/localtime:/etc/localtime:ro | ||||||
|     ports: |     ports: | ||||||
|       - 3001:3001 |       - 3001:3001 | ||||||
|       - 9230:9230 |       - 9230:9230 | ||||||
| @@ -59,6 +61,8 @@ services: | |||||||
|       - ../server:/usr/src/app |       - ../server:/usr/src/app | ||||||
|       - ${UPLOAD_LOCATION}:/usr/src/app/upload |       - ${UPLOAD_LOCATION}:/usr/src/app/upload | ||||||
|       - /usr/src/app/node_modules |       - /usr/src/app/node_modules | ||||||
|  |       - /etc/timezone:/etc/timezone:ro | ||||||
|  |       - /etc/localtime:/etc/localtime:ro | ||||||
|     env_file: |     env_file: | ||||||
|       - .env |       - .env | ||||||
|     ports: |     ports: | ||||||
|   | |||||||
| @@ -10,6 +10,8 @@ services: | |||||||
|     command: ["./start-server.sh"] |     command: ["./start-server.sh"] | ||||||
|     volumes: |     volumes: | ||||||
|       - ${UPLOAD_LOCATION}:/usr/src/app/upload |       - ${UPLOAD_LOCATION}:/usr/src/app/upload | ||||||
|  |       - /etc/timezone:/etc/timezone:ro | ||||||
|  |       - /etc/localtime:/etc/localtime:ro | ||||||
|     env_file: |     env_file: | ||||||
|       - .env |       - .env | ||||||
|     depends_on: |     depends_on: | ||||||
| @@ -29,7 +31,7 @@ services: | |||||||
|     env_file: |     env_file: | ||||||
|       - .env |       - .env | ||||||
|     restart: always |     restart: always | ||||||
|    |  | ||||||
|   immich-microservices: |   immich-microservices: | ||||||
|     container_name: immich_microservices |     container_name: immich_microservices | ||||||
|     image: immich-microservices:latest |     image: immich-microservices:latest | ||||||
| @@ -42,6 +44,8 @@ services: | |||||||
|     command: ["./start-microservices.sh"] |     command: ["./start-microservices.sh"] | ||||||
|     volumes: |     volumes: | ||||||
|       - ${UPLOAD_LOCATION}:/usr/src/app/upload |       - ${UPLOAD_LOCATION}:/usr/src/app/upload | ||||||
|  |       - /etc/timezone:/etc/timezone:ro | ||||||
|  |       - /etc/localtime:/etc/localtime:ro | ||||||
|     env_file: |     env_file: | ||||||
|       - .env |       - .env | ||||||
|     depends_on: |     depends_on: | ||||||
|   | |||||||
| @@ -4,9 +4,11 @@ services: | |||||||
|   immich-server: |   immich-server: | ||||||
|     container_name: immich_server |     container_name: immich_server | ||||||
|     image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} |     image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} | ||||||
|     command: [ "start.sh", "immich" ] |     command: ["start.sh", "immich"] | ||||||
|     volumes: |     volumes: | ||||||
|       - ${UPLOAD_LOCATION}:/usr/src/app/upload |       - ${UPLOAD_LOCATION}:/usr/src/app/upload | ||||||
|  |       - /etc/timezone:/etc/timezone:ro | ||||||
|  |       - /etc/localtime:/etc/localtime:ro | ||||||
|     env_file: |     env_file: | ||||||
|       - .env |       - .env | ||||||
|     depends_on: |     depends_on: | ||||||
| @@ -21,9 +23,11 @@ services: | |||||||
|     # extends: |     # extends: | ||||||
|     #   file: hwaccel.yml |     #   file: hwaccel.yml | ||||||
|     #   service: hwaccel |     #   service: hwaccel | ||||||
|     command: [ "start.sh", "microservices" ] |     command: ["start.sh", "microservices"] | ||||||
|     volumes: |     volumes: | ||||||
|       - ${UPLOAD_LOCATION}:/usr/src/app/upload |       - ${UPLOAD_LOCATION}:/usr/src/app/upload | ||||||
|  |       - /etc/timezone:/etc/timezone:ro | ||||||
|  |       - /etc/localtime:/etc/localtime:ro | ||||||
|     env_file: |     env_file: | ||||||
|       - .env |       - .env | ||||||
|     depends_on: |     depends_on: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user