Initialise repository structure and placeholder files. Generic functionality works i guess, need to come up with a better solution for compose templates
This commit is contained in:
commit
53695f4fff
411 files changed
+7817
No files matched your search
@@ -0,0 +1,48 @@
|
||||
services:
|
||||
immich-server:
|
||||
image: {{ immich_server_image }}
|
||||
restart: unless-stopped
|
||||
env_file: .env
|
||||
{% if immich_routing_mode == "host" %}
|
||||
ports:
|
||||
- "{{ immich_http_port }}:2283"
|
||||
{% endif %}
|
||||
{% if immich_routing_mode == "traefik" %}
|
||||
# internal HTTP service port: 2283; not published on the Docker host
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.http.routers.immich.rule=Host(`{{ immich_domain }}`)
|
||||
- traefik.http.routers.immich.entrypoints={{ immich_traefik_entrypoint }}
|
||||
- traefik.http.routers.immich.tls={{ immich_traefik_tls | bool | ternary('true', 'false') }}
|
||||
- traefik.http.services.immich.loadbalancer.server.port=2283
|
||||
networks:
|
||||
- default
|
||||
- {{ immich_traefik_network }}
|
||||
{% endif %}
|
||||
volumes:
|
||||
- {{ immich_upload_location }}:/usr/src/app/upload
|
||||
depends_on:
|
||||
- redis
|
||||
- database
|
||||
immich-machine-learning:
|
||||
image: {{ immich_ml_image }}
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./model-cache:/cache
|
||||
redis:
|
||||
image: {{ immich_redis_image }}
|
||||
restart: unless-stopped
|
||||
database:
|
||||
image: {{ immich_postgres_image }}
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
||||
POSTGRES_USER: ${DB_USERNAME}
|
||||
POSTGRES_DB: ${DB_DATABASE_NAME}
|
||||
volumes:
|
||||
- ./postgres:/var/lib/postgresql/data
|
||||
{% if immich_routing_mode == "traefik" %}
|
||||
networks:
|
||||
{{ immich_traefik_network }}:
|
||||
external: true
|
||||
{% endif %}
|
||||
@@ -0,0 +1,4 @@
|
||||
{% for key, value in immich_env.items() %}
|
||||
{{ key }}={{ value }}
|
||||
{% endfor %}
|
||||
|
||||
Reference in new issue
Block a user