Created
December 20, 2022 19:16
-
-
Save skaag/012d12957d20adf3cc510affcf6f39d6 to your computer and use it in GitHub Desktop.
Immich docker-compose.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Explanation: In this case, PostgreSQL and Redis are both already | |
# installed on the host, so this configuration skips them entirely, | |
# and removes the dependency on them from other images | |
version: "3.8" | |
services: | |
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 | |
ports: | |
- "127.0.0.1:3001:3001" | |
# depends_on: | |
# - redis | |
# - database | |
restart: always | |
extra_hosts: | |
- "host.docker.internal:host-gateway" | |
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 | |
ports: | |
- 127.0.0.1:3002:3002 | |
# depends_on: | |
# - redis | |
# - database | |
restart: always | |
extra_hosts: | |
- "host.docker.internal:host-gateway" | |
immich-machine-learning: | |
image: altran1502/immich-machine-learning:release | |
entrypoint: ["/bin/sh", "./entrypoint.sh"] | |
volumes: | |
- ${UPLOAD_LOCATION}:/usr/src/app/upload | |
env_file: | |
- .env | |
environment: | |
- NODE_ENV=production | |
# depends_on: | |
# - database | |
restart: always | |
extra_hosts: | |
- "host.docker.internal:host-gateway" | |
immich-web: | |
image: altran1502/immich-web:release | |
entrypoint: ["/bin/sh", "./entrypoint.sh"] | |
env_file: | |
- .env | |
environment: | |
# Rename these values for svelte public interface | |
- PUBLIC_IMMICH_SERVER_URL=${IMMICH_SERVER_URL} | |
restart: always | |
extra_hosts: | |
- "host.docker.internal:host-gateway" | |
# redis: | |
# container_name: immich_redis | |
# image: redis:6.2 | |
# restart: always | |
# database: | |
# container_name: immich_postgres | |
# 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: | |
# - pgdata:/var/lib/postgresql/data | |
# restart: always | |
immich-proxy: | |
container_name: immich_proxy | |
image: altran1502/immich-proxy:release | |
environment: | |
# Make sure these values get passed through from the env file | |
- IMMICH_SERVER_URL | |
- IMMICH_WEB_URL | |
ports: | |
- 2283:8080 | |
logging: | |
driver: none | |
depends_on: | |
- immich-server | |
restart: always | |
extra_hosts: | |
- "host.docker.internal:host-gateway" | |
volumes: | |
pgdata: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment