mirror of
https://github.com/Haxxnet/Compose-Examples.git
synced 2025-11-23 08:54:27 +01:00
cleanup repo
This commit is contained in:
23
examples/immich/.env
Normal file
23
examples/immich/.env
Normal file
@@ -0,0 +1,23 @@
|
||||
# Database
|
||||
DB_HOSTNAME=immich-database
|
||||
DB_USERNAME=postgres
|
||||
DB_PASSWORD=MySecureDatabasePassword # change this
|
||||
DB_DATABASE_NAME=immich-psgdb
|
||||
DB_DATABASE_LOCATION=/mnt/docker-volumes/immich/database # change this
|
||||
|
||||
# Redis
|
||||
REDIS_HOSTNAME=immich-redis
|
||||
|
||||
# Upload File Config
|
||||
UPLOAD_LOCATION=/mnt/docker-volumes/immich/uploads # change this
|
||||
|
||||
# JWT SECRET
|
||||
JWT_SECRET=9C9E6EE5B56F137D2123123123123 # change this to a secure random secret
|
||||
|
||||
# MAPBOX
|
||||
## ENABLE_MAPBOX is either true of false -> if true, you have to provide MAPBOX_KEY
|
||||
ENABLE_MAPBOX=false
|
||||
|
||||
# WEB
|
||||
MAPBOX_KEY=
|
||||
VITE_SERVER_ENDPOINT=http://localhost:2283/api
|
||||
3
examples/immich/README.md
Normal file
3
examples/immich/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# References
|
||||
|
||||
- https://github.com/immich-app/immich
|
||||
102
examples/immich/docker-compose.yml
Normal file
102
examples/immich/docker-compose.yml
Normal file
@@ -0,0 +1,102 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
immich-server:
|
||||
container_name: immich-server
|
||||
image: altran1502/immich-server:release
|
||||
entrypoint: ["/bin/sh", "./start-server.sh"]
|
||||
volumes:
|
||||
- ${UPLOAD_LOCATION}:/usr/src/app/upload
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
depends_on:
|
||||
- immich-redis
|
||||
- immich-database
|
||||
restart: unless-stopped
|
||||
#labels:
|
||||
# - "com.centurylinklabs.watchtower.enable=true"
|
||||
|
||||
immich-microservices:
|
||||
container_name: immich-microservices
|
||||
image: altran1502/immich-server:release
|
||||
entrypoint: ["/bin/sh", "./start-microservices.sh"]
|
||||
volumes:
|
||||
- ${UPLOAD_LOCATION}:/usr/src/app/upload
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
depends_on:
|
||||
- immich-redis
|
||||
- immich-database
|
||||
restart: unless-stopped
|
||||
#labels:
|
||||
# - "com.centurylinklabs.watchtower.enable=true"
|
||||
|
||||
#immich-machine-learning:
|
||||
# image: altran1502/immich-machine-learning:release
|
||||
# container_name: immich-ml
|
||||
# entrypoint: ["/bin/sh", "./entrypoint.sh"]
|
||||
# volumes:
|
||||
# - ${UPLOAD_LOCATION}:/usr/src/app/upload
|
||||
# env_file:
|
||||
# - .env
|
||||
# environment:
|
||||
# - NODE_ENV=production
|
||||
# depends_on:
|
||||
# - immich-database
|
||||
# restart: always
|
||||
# labels:
|
||||
# - "com.centurylinklabs.watchtower.enable=true"
|
||||
|
||||
immich-web:
|
||||
image: altran1502/immich-web:release
|
||||
container_name: immich-web
|
||||
entrypoint: ["/bin/sh", "./entrypoint.sh"]
|
||||
env_file:
|
||||
- .env
|
||||
restart: unless-stopped
|
||||
#labels:
|
||||
# - "com.centurylinklabs.watchtower.enable=true"
|
||||
|
||||
immich-redis:
|
||||
container_name: immich-redis
|
||||
image: redis:6.2
|
||||
restart: unless-stopped
|
||||
#labels:
|
||||
# - "com.centurylinklabs.watchtower.enable=true"
|
||||
|
||||
immich-database:
|
||||
container_name: immich-database
|
||||
image: postgres:14
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
||||
POSTGRES_USER: ${DB_USERNAME}
|
||||
POSTGRES_DB: ${DB_DATABASE_NAME}
|
||||
PG_DATA: /var/lib/postgresql/data
|
||||
volumes:
|
||||
- ${DB_DATABASE_LOCATION}:/var/lib/postgresql/data
|
||||
restart: unless-stopped
|
||||
#labels:
|
||||
# - "com.centurylinklabs.watchtower.enable=true"
|
||||
|
||||
immich-proxy:
|
||||
container_name: immich-proxy
|
||||
image: altran1502/immich-proxy:release
|
||||
ports:
|
||||
- 8080:8080 # WEB UI via proxy; do not remove this proxy service, use it! Even if you have your own reverse proxy.
|
||||
depends_on:
|
||||
- immich-server
|
||||
restart: unless-stopped
|
||||
#labels:
|
||||
# - traefik.enable=false
|
||||
# - traefik.http.routers.immich.rule=Host(`immich.example.com`)
|
||||
# - traefik.http.services.immich.loadbalancer.server.port=8080
|
||||
# - traefik.docker.network=proxy
|
||||
# # Part for local lan services only
|
||||
# - traefik.http.routers.immich.middlewares=local-ipwhitelist@file
|
||||
# - "com.centurylinklabs.watchtower.enable=true"
|
||||
Reference in New Issue
Block a user