mirror of
https://github.com/almet/copanier.git
synced 2025-04-28 11:32:38 +02:00
Changed db mount path (#68)
Fixes #65 Co-authored-by: CapsLock <github@legeox.net>
This commit is contained in:
parent
4561302480
commit
f89985ad92
3 changed files with 8 additions and 4 deletions
|
@ -110,7 +110,11 @@ The app will be available at http://localhost:2244.
|
|||
|
||||
Database is saved under `db` folder. This folder is mounted in `app` container to persist data changes on host disk.
|
||||
|
||||
For development purpose, you can use both `docker-compose.yml` and `docker-compose-dev.yml` which allows you to work on copanier source code and make gunicorn automatically reload workers when code changes.
|
||||
For development purpose, you can use both `docker-compose.yml` and `docker-compose-dev.yml` which allows you to work on copanier source code and make gunicorn automatically reload workers when code changes:
|
||||
|
||||
```bash
|
||||
sudo docker-compose -p copanier -f docker-compose.yml -f docker-compose-dev.yml up
|
||||
```
|
||||
|
||||
## Run local server
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
version: "3.9"
|
||||
version: "3.3"
|
||||
services:
|
||||
app:
|
||||
command: /srv/copanier-venv/bin/gunicorn -k roll.worker.Worker copanier:app --bind 0.0.0.0:2244 --reload --log-level debug --access-logfile - --error-logfile -
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
version: "3.9"
|
||||
version: "3.3"
|
||||
services:
|
||||
app:
|
||||
build:
|
||||
|
@ -6,7 +6,7 @@ services:
|
|||
dockerfile: "./docker/Dockerfile"
|
||||
command: /srv/copanier-venv/bin/gunicorn -k roll.worker.Worker copanier:app --bind 0.0.0.0:2244
|
||||
volumes:
|
||||
- "../copanier/db:/srv/copanier/db" # To persist database changes
|
||||
- "../db:/srv/copanier/db" # To persist database changes
|
||||
restart: always
|
||||
static:
|
||||
image: "nginx:latest"
|
||||
|
|
Loading…
Reference in a new issue