chore(backup_docker): add ollama, immich to nginx, immich power tools
This commit is contained in:
1 parent
a85f5d90c1
commit
f5b580c870
2 files changed
+122
-5
No files matched your search
@@ -19,7 +19,8 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
# Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file
|
# Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file
|
||||||
- ${UPLOAD_LOCATION}:/data
|
- ${UPLOAD_LOCATION}:/data
|
||||||
- /data/immich/pictures:/libary
|
- /data/immich/pictures:/library
|
||||||
|
- /data/immich/dropfolder:/library_dropfolder
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
@@ -33,6 +34,7 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- immich
|
- immich
|
||||||
- shared-redis-services
|
- shared-redis-services
|
||||||
|
- shared-proxy-services
|
||||||
|
|
||||||
immich-machine-learning:
|
immich-machine-learning:
|
||||||
container_name: immich_machine_learning
|
container_name: immich_machine_learning
|
||||||
@@ -61,7 +63,7 @@ services:
|
|||||||
POSTGRES_DB: ${DB_DATABASE_NAME}
|
POSTGRES_DB: ${DB_DATABASE_NAME}
|
||||||
POSTGRES_INITDB_ARGS: '--data-checksums'
|
POSTGRES_INITDB_ARGS: '--data-checksums'
|
||||||
# Uncomment the DB_STORAGE_TYPE: 'HDD' var if your database isn't stored on SSDs
|
# Uncomment the DB_STORAGE_TYPE: 'HDD' var if your database isn't stored on SSDs
|
||||||
# DB_STORAGE_TYPE: 'HDD'
|
DB_STORAGE_TYPE: 'HDD'
|
||||||
volumes:
|
volumes:
|
||||||
# Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file
|
# Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file
|
||||||
- ${DB_DATA_LOCATION}:/var/lib/postgresql/data
|
- ${DB_DATA_LOCATION}:/var/lib/postgresql/data
|
||||||
@@ -71,11 +73,33 @@ services:
|
|||||||
disable: false
|
disable: false
|
||||||
networks:
|
networks:
|
||||||
- immich
|
- immich
|
||||||
|
immich-power-tools:
|
||||||
|
container_name: immich_power_tools
|
||||||
|
image: ghcr.io/immich-power-tools/immich-power-tools:latest
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- "8001:3000"
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
volumes:
|
||||||
|
- immich-power-tools-data:/app/data
|
||||||
|
environment:
|
||||||
|
IMMICH_URL: http://immich_server:2283
|
||||||
|
EXTERNAL_IMMICH_URL: https://fotos.someoneslinux.selfhost.eu
|
||||||
|
IMMICH_API_KEY: "ROCfyJGLFBJSxKYXBcdfEfec7P80FVkvyr6fk8hThg"
|
||||||
|
DB_HOST: database
|
||||||
|
DB_PORT: 5432
|
||||||
|
DB_USERNAME: ${DB_USERNAME}
|
||||||
|
DB_PASSWORD: ${DB_PASSWORD}
|
||||||
|
DB_DATABASE_NAME: ${DB_DATABASE_NAME}
|
||||||
|
networks:
|
||||||
|
- immich
|
||||||
volumes:
|
volumes:
|
||||||
model-cache:
|
model-cache:
|
||||||
|
immich-power-tools-data:
|
||||||
networks:
|
networks:
|
||||||
immich:
|
immich:
|
||||||
shared-redis-services:
|
shared-redis-services:
|
||||||
external: true
|
external: true
|
||||||
|
shared-proxy-services:
|
||||||
|
external: true
|
||||||
@@ -17,7 +17,10 @@ server {
|
|||||||
passwd.someoneslinux.selfhost.eu
|
passwd.someoneslinux.selfhost.eu
|
||||||
requests.someoneslinux.selfhost.eu
|
requests.someoneslinux.selfhost.eu
|
||||||
status.someoneslinux.selfhost.eu
|
status.someoneslinux.selfhost.eu
|
||||||
code.someoneslinux.selfhost.eu;
|
fotos.someoneslinux.selfhost.eu
|
||||||
|
code.someoneslinux.selfhost.eu
|
||||||
|
aiapi.someoneslinux.selfhost.eu
|
||||||
|
ai.someoneslinux.selfhost.eu;
|
||||||
#ssl_conf_command Groups X25519:secp256r1:secp384r1;
|
#ssl_conf_command Groups X25519:secp256r1:secp384r1;
|
||||||
# ssl_conf_command Groups X25519:prime256v1:secp384r1;
|
# ssl_conf_command Groups X25519:prime256v1:secp384r1;
|
||||||
location /.well-known/acme-challenge/ {
|
location /.well-known/acme-challenge/ {
|
||||||
@@ -370,3 +373,93 @@ server {
|
|||||||
proxy_set_header Connection $connection_upgrade;
|
proxy_set_header Connection $connection_upgrade;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
###################
|
||||||
|
# IMMICH
|
||||||
|
###################
|
||||||
|
server {
|
||||||
|
listen 443 ssl;http2 on;
|
||||||
|
server_name fotos.someoneslinux.selfhost.eu;
|
||||||
|
|
||||||
|
add_header Content-Security-Policy "frame-ancestors 'self';" always;
|
||||||
|
add_header X-Frame-Options "SAMEORIGIN" always;
|
||||||
|
add_header X-Content-Type-Options "nosniff" always;
|
||||||
|
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
|
||||||
|
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
|
||||||
|
|
||||||
|
ssl_certificate /etc/nginx/certs/live/cloud.someoneslinux.selfhost.eu/fullchain.pem;
|
||||||
|
ssl_certificate_key /etc/nginx/certs/live/cloud.someoneslinux.selfhost.eu/privkey.pem;
|
||||||
|
|
||||||
|
client_max_body_size 10G;
|
||||||
|
location / {
|
||||||
|
proxy_pass http://immich_server:2283;
|
||||||
|
# Do not try another upstream on errors
|
||||||
|
proxy_next_upstream off;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Forwarded-Proto https;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection $connection_upgrade;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
###################
|
||||||
|
# OLLAMA
|
||||||
|
###################
|
||||||
|
server {
|
||||||
|
listen 443 ssl;http2 on;
|
||||||
|
server_name ai.someoneslinux.selfhost.eu;
|
||||||
|
|
||||||
|
add_header Content-Security-Policy "frame-ancestors 'self';" always;
|
||||||
|
add_header X-Frame-Options "SAMEORIGIN" always;
|
||||||
|
add_header X-Content-Type-Options "nosniff" always;
|
||||||
|
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
|
||||||
|
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
|
||||||
|
|
||||||
|
ssl_certificate /etc/nginx/certs/live/cloud.someoneslinux.selfhost.eu/fullchain.pem;
|
||||||
|
ssl_certificate_key /etc/nginx/certs/live/cloud.someoneslinux.selfhost.eu/privkey.pem;
|
||||||
|
|
||||||
|
client_max_body_size 10G;
|
||||||
|
location / {
|
||||||
|
proxy_pass http://192.168.0.39:3000;
|
||||||
|
# Do not try another upstream on errors
|
||||||
|
proxy_next_upstream off;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Forwarded-Proto https;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection $connection_upgrade;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
###################
|
||||||
|
# OLLAMA API
|
||||||
|
###################
|
||||||
|
server {
|
||||||
|
listen 443 ssl;http2 on;
|
||||||
|
server_name aiapi.someoneslinux.selfhost.eu;
|
||||||
|
|
||||||
|
add_header Content-Security-Policy "frame-ancestors 'self';" always;
|
||||||
|
add_header X-Frame-Options "SAMEORIGIN" always;
|
||||||
|
add_header X-Content-Type-Options "nosniff" always;
|
||||||
|
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
|
||||||
|
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
|
||||||
|
|
||||||
|
ssl_certificate /etc/nginx/certs/live/cloud.someoneslinux.selfhost.eu/fullchain.pem;
|
||||||
|
ssl_certificate_key /etc/nginx/certs/live/cloud.someoneslinux.selfhost.eu/privkey.pem;
|
||||||
|
|
||||||
|
client_max_body_size 10G;
|
||||||
|
location / {
|
||||||
|
proxy_pass http://192.168.0.39:11434;
|
||||||
|
# Do not try another upstream on errors
|
||||||
|
proxy_next_upstream off;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Forwarded-Proto https;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection $connection_upgrade;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in new issue
Block a user