mirror of
https://github.com/tgdrive/teldrive.git
synced 2024-09-20 08:15:55 +08:00
chore(docs): Update Docker image templates and manifest names
This commit is contained in:
parent
013a3564db
commit
7c0de2acd1
|
@ -97,18 +97,14 @@ You can generate secret from [here](https://generate-secret.vercel.app/64).
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
docker network create postgres
|
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 postgres.yml up -d #Run this only if you want to use self-hosted db
|
||||||
docker compose -f teldrive.yml up -d
|
docker compose -f teldrive.yml up -d
|
||||||
#Image Resize Service
|
#Image Resize Service
|
||||||
mkdir imagestore
|
|
||||||
chown -R 1000:1000 imagestore
|
|
||||||
docker compose -f image-resizer.yml up -d
|
docker compose -f image-resizer.yml up -d
|
||||||
```
|
```
|
||||||
- **Go to http://machine_ip:8080**
|
- **Go to http://machine_ip:8080**
|
||||||
- **Change Image resizer Host to http://machine_ip:8000 in UI settings.**
|
- **Change Image resizer Host to http://machine_ip:8000 in UI settings.**
|
||||||
> [!WARNING]
|
> [!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.
|
> 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
|
### Use without docker
|
||||||
|
|
|
@ -1,14 +1,11 @@
|
||||||
services:
|
services:
|
||||||
imagor:
|
imgproxy:
|
||||||
image: ghcr.io/divyam234/imagor
|
image: darthsim/imgproxy
|
||||||
container_name: imagor
|
container_name: imgproxy
|
||||||
restart: always
|
|
||||||
volumes:
|
|
||||||
- ./imagestore:/home/user/imagor_storage
|
|
||||||
ports:
|
|
||||||
- 8000:8000
|
|
||||||
environment:
|
environment:
|
||||||
IMAGOR_UNSAFE: 1
|
IMGPROXY_ALLOW_ORIGIN: "*"
|
||||||
FILE_RESULT_STORAGE_BASE_DIR: /home/user/imagor_storage
|
IMGPROXY_ENFORCE_WEBP: true
|
||||||
FILE_RESULT_STORAGE_MKDIR_PERMISSION: 0755
|
IMGPROXY_MALLOC: "jemalloc"
|
||||||
FILE_RESULT_STORAGE_WRITE_PERMISSION: 0666
|
restart: always
|
||||||
|
ports:
|
||||||
|
- 8000:8080
|
||||||
|
|
|
@ -6,8 +6,10 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- postgres
|
- postgres
|
||||||
volumes:
|
volumes:
|
||||||
- ./session.db:/session.db:rw
|
|
||||||
- ./config.toml:/config.toml
|
- ./config.toml:/config.toml
|
||||||
|
- type: bind
|
||||||
|
source: ./session.db
|
||||||
|
target: /session.db
|
||||||
ports:
|
ports:
|
||||||
- 8080:8080
|
- 8080:8080
|
||||||
networks:
|
networks:
|
||||||
|
|
Loading…
Reference in a new issue