chore(docs): Update Docker image templates and manifest names

This commit is contained in:
divyam234 2024-09-05 06:46:54 +02:00
parent 013a3564db
commit 7c0de2acd1
3 changed files with 12 additions and 17 deletions

View file

@ -97,18 +97,14 @@ You can generate secret from [here](https://generate-secret.vercel.app/64).
```sh
docker network create postgres
touch session.db
docker compose -f postgres.yml up -d #Run this only if you want to use self-hosted db
docker compose -f teldrive.yml up -d
#Image Resize Service
mkdir imagestore
chown -R 1000:1000 imagestore
docker compose -f image-resizer.yml up -d
```
- **Go to http://machine_ip:8080**
- **Change Image resizer Host to http://machine_ip:8000 in UI settings.**
> [!WARNING]
> Make sure to run ```touch session.db``` to create empty session file if you are using docker compose otherwise app will not run.
> Image Resizer will not work if you are accessing teldrive on localhost so use machine ip to access teldrive and image resizer.Otherwise change compose files to use host network.
### Use without docker

View file

@ -1,14 +1,11 @@
services:
imagor:
image: ghcr.io/divyam234/imagor
container_name: imagor
restart: always
volumes:
- ./imagestore:/home/user/imagor_storage
ports:
- 8000:8000
imgproxy:
image: darthsim/imgproxy
container_name: imgproxy
environment:
IMAGOR_UNSAFE: 1
FILE_RESULT_STORAGE_BASE_DIR: /home/user/imagor_storage
FILE_RESULT_STORAGE_MKDIR_PERMISSION: 0755
FILE_RESULT_STORAGE_WRITE_PERMISSION: 0666
IMGPROXY_ALLOW_ORIGIN: "*"
IMGPROXY_ENFORCE_WEBP: true
IMGPROXY_MALLOC: "jemalloc"
restart: always
ports:
- 8000:8080

View file

@ -6,8 +6,10 @@ services:
networks:
- postgres
volumes:
- ./session.db:/session.db:rw
- ./config.toml:/config.toml
- type: bind
source: ./session.db
target: /session.db
ports:
- 8080:8080
networks: