1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-22 01:47:08 +02:00

feat: server containers use host timezone (#4313)

This commit is contained in:
Jonathan Jogenfors 2023-10-03 03:50:27 +02:00 committed by GitHub
parent 98db9331d8
commit 6d1868a6e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 3 deletions

View File

@ -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:

View File

@ -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:
@ -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:

View File

@ -7,6 +7,8 @@ services:
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:
@ -24,6 +26,8 @@ services:
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: