Skip to content

Commit

Permalink
chore(docs): Update Docker image templates and manifest names
Browse files Browse the repository at this point in the history
  • Loading branch information
divyam234 committed Sep 5, 2024
1 parent 013a356 commit 7c0de2a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 16 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
19 changes: 8 additions & 11 deletions docker/compose/image-resizer.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
services:
imagor:
image: ghcr.io/divyam234/imagor
container_name: imagor
imgproxy:
image: darthsim/imgproxy
container_name: imgproxy
environment:
IMGPROXY_ALLOW_ORIGIN: "*"
IMGPROXY_ENFORCE_WEBP: true
IMGPROXY_MALLOC: "jemalloc"
restart: always
volumes:
- ./imagestore:/home/user/imagor_storage
ports:
- 8000:8000
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
- 8000:8080
4 changes: 3 additions & 1 deletion docker/compose/teldrive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7c0de2a

Please sign in to comment.