1
0
mirror of https://github.com/immich-app/immich.git synced 2025-01-02 12:48:35 +02:00

Modify docker-compose to be compatible with k8s (#149)

* Modify docker-compose file using a hyphen for services instead of underscore

* Change URL in Nginx setting
This commit is contained in:
Alex 2022-05-08 07:07:58 -05:00 committed by GitHub
parent 43d639104d
commit bb89fa4aab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 30 additions and 30 deletions

View File

@ -1,7 +1,7 @@
version: "3.8" version: "3.8"
services: services:
immich_server: immich-server:
image: immich-server-dev:1.9.0 image: immich-server-dev:1.9.0
build: build:
context: ../server context: ../server
@ -21,9 +21,9 @@ services:
- redis - redis
- database - database
networks: networks:
- immich_network - immich-network
immich_microservices: immich-microservices:
image: immich-microservices-dev:1.9.0 image: immich-microservices-dev:1.9.0
build: build:
context: ../microservices context: ../microservices
@ -42,14 +42,14 @@ services:
depends_on: depends_on:
- database - database
networks: networks:
- immich_network - immich-network
redis: redis:
container_name: immich_redis container_name: immich_redis
image: redis:6.2 image: redis:6.2
networks: networks:
- immich_network - immich-network
database: database:
container_name: immich_postgres container_name: immich_postgres
@ -66,7 +66,7 @@ services:
ports: ports:
- 5432:5432 - 5432:5432
networks: networks:
- immich_network - immich-network
nginx: nginx:
container_name: proxy_nginx container_name: proxy_nginx
@ -79,11 +79,11 @@ services:
logging: logging:
driver: none driver: none
networks: networks:
- immich_network - immich-network
depends_on: depends_on:
- immich_server - immich-server
networks: networks:
immich_network: immich-network:
volumes: volumes:
pgdata: pgdata:

View File

@ -1,7 +1,7 @@
version: "3.8" version: "3.8"
services: services:
immich_server: immich-server:
image: immich-server-dev:1.9.0 image: immich-server-dev:1.9.0
build: build:
context: ../server context: ../server
@ -19,9 +19,9 @@ services:
- redis - redis
- database - database
networks: networks:
- immich_network - immich-network
immich_microservices: immich-microservices:
image: immich-microservices-dev:1.9.0 image: immich-microservices-dev:1.9.0
build: build:
context: ../microservices context: ../microservices
@ -46,13 +46,13 @@ services:
- database - database
- immich_server - immich_server
networks: networks:
- immich_network - immich-network
redis: redis:
container_name: immich_redis container_name: immich_redis
image: redis:6.2 image: redis:6.2
networks: networks:
- immich_network - immich-network
database: database:
container_name: immich_postgres container_name: immich_postgres
@ -69,7 +69,7 @@ services:
ports: ports:
- 5432:5432 - 5432:5432
networks: networks:
- immich_network - immich-network
nginx: nginx:
container_name: proxy_nginx container_name: proxy_nginx
@ -82,11 +82,11 @@ services:
logging: logging:
driver: none driver: none
networks: networks:
- immich_network - immich-network
depends_on: depends_on:
- immich_server - immich-server
networks: networks:
immich_network: immich-network:
volumes: volumes:
pgdata: pgdata:

View File

@ -1,8 +1,8 @@
version: "3.8" version: "3.8"
services: services:
immich_server: immich-server:
image: altran1502/immich-server:v1.9.0_13-dev image: altran1502/immich-server:latest
entrypoint: ["/bin/sh", "./entrypoint.sh"] entrypoint: ["/bin/sh", "./entrypoint.sh"]
expose: expose:
- "3000" - "3000"
@ -16,11 +16,11 @@ services:
- redis - redis
- database - database
networks: networks:
- immich_network - immich-network
restart: unless-stopped restart: unless-stopped
immich_microservices: immich-microservices:
image: altran1502/immich-microservices:v1.9.0_13-dev image: altran1502/immich-microservices:latest
entrypoint: ["/bin/sh", "./entrypoint.sh"] entrypoint: ["/bin/sh", "./entrypoint.sh"]
expose: expose:
- "3001" - "3001"
@ -33,14 +33,14 @@ services:
depends_on: depends_on:
- database - database
networks: networks:
- immich_network - immich-network
restart: unless-stopped restart: unless-stopped
redis: redis:
container_name: immich_redis container_name: immich_redis
image: redis:6.2 image: redis:6.2
networks: networks:
- immich_network - immich-network
database: database:
container_name: immich_postgres container_name: immich_postgres
@ -57,7 +57,7 @@ services:
ports: ports:
- 5432:5432 - 5432:5432
networks: networks:
- immich_network - immich-network
nginx: nginx:
container_name: proxy_nginx container_name: proxy_nginx
@ -70,11 +70,11 @@ services:
logging: logging:
driver: none driver: none
networks: networks:
- immich_network - immich-network
depends_on: depends_on:
- immich_server - immich-server
networks: networks:
immich_network: immich-network:
volumes: volumes:
pgdata: pgdata:

View File

@ -41,6 +41,6 @@ server {
proxy_set_header Connection "upgrade"; proxy_set_header Connection "upgrade";
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_pass http://immich_server:3000; proxy_pass http://immich-server:3000;
} }
} }