Skip to content

Commit

Permalink
Added temp folder
Browse files Browse the repository at this point in the history
  • Loading branch information
simjanos-dev committed Jan 15, 2024
1 parent b8e049d commit 713a7cf
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ name: Build and Publish Docker images
# If you want to push images on every git push to the repo:main branch
on:
push:
branches: dev
branches: main

## If you want to push images only on a new tag/release
# on:
Expand Down
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Experimental languages have been added recently and awaiting testing and communi
## Installation (Linux)
Step 1: Install docker desktop

Step 2: Create the folders where the data will be stored. Three folders will be needed, one for `dictionaries`, one for `logs`, and one for the `database`.
Step 2: Create the folders where the data will be stored. Four folders will be needed, one for `dictionaries`, one for `logs`, one for `database` and one for `temp`.

Step 3: Copy the `docker-compose.yml` provided here and edit it to put the folders created in the step above in the indicated places. Please make sure you specify your `dictionaries` folder in both lines it is required.

Expand All @@ -50,6 +50,18 @@ Your server now should be running and accessible on http://localhost:9191. If yo

Please follow the instructions on this page in the `Importing dictionaries` section below to import dictionaries that you want to use.

## Known issues after first installation
Sometimes when opening LinguaCafe the first time there is an error message about users database table. If this happens, just stop and start your containers again, it should fix the problem.

> docker compose down
> docker compose up -d
If you are unable to import .epub files, it may be caused because of the permissions of your temp folder. Running this command should fix the issue.

> sudo chmod 777 /your/linguacafe/temp/folder -R
These will be addressed in a future update.

## Updating to the latest version
Run these commands from the directory where you placed your `docker-compose.yml`:
> docker compose pull
Expand Down
6 changes: 4 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ networks:

services:
webserver:
image: ghcr.io/simjanos-dev/linguacafe-webserver:dev
image: ghcr.io/simjanos-dev/linguacafe-webserver:main
container_name: linguacafe-webserver
depends_on:
mysql:
condition: service_healthy
volumes:
- /your/linguacafe/dict/folder:/var/www/html/storage/app/dictionaries
- /your/linguacafe/logs/folder:/var/www/html/storage/logs
- /your/linguacafe/temp/folder:/var/www/html/storage/app/temp
ports:
- "9191:80"
- "3000:3000"
Expand Down Expand Up @@ -50,8 +51,9 @@ services:
command: /app/manage.py runserver 0.0.0.0:8678
restart: unless-stopped
tty: true
image: ghcr.io/simjanos-dev/linguacafe-python-service:dev
image: ghcr.io/simjanos-dev/linguacafe-python-service:main
volumes:
- /your/linguacafe/dict/folder:/var/www/html/storage/app/dictionaries
- /your/linguacafe/temp/folder:/var/www/html/storage/app/temp
networks:
- linguacafe

0 comments on commit 713a7cf

Please sign in to comment.