changement d'emplacement des fichiers config spécifiques à l'environnement
Some checks failed
Build and Push Docker Image / build (push) Failing after 17s
Some checks failed
Build and Push Docker Image / build (push) Failing after 17s
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -368,7 +368,7 @@ venv
|
|||||||
*migrations/
|
*migrations/
|
||||||
|
|
||||||
|
|
||||||
Reskreen/server_config.py
|
server_config.py
|
||||||
./db.sqlite3
|
./db.sqlite3
|
||||||
db.sqlite3
|
db.sqlite3
|
||||||
media/
|
media/
|
||||||
|
@@ -12,7 +12,7 @@ https://docs.djangoproject.com/en/4.0/ref/settings/
|
|||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import os
|
import os
|
||||||
from Reskreen.server_config import *
|
from config.server_config import *
|
||||||
|
|
||||||
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
||||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||||
|
@@ -11,13 +11,18 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "8081:8080"
|
- "8081:8080"
|
||||||
volumes:
|
volumes:
|
||||||
- reskreen-data:/app
|
- reskreen-data:/app/config
|
||||||
|
|
||||||
backend-cron:
|
backend-cron:
|
||||||
image: registry.prod.resk-u.ch/reskreen:latest
|
image: registry.prod.resk-u.ch/reskreen:latest
|
||||||
command: crond -f
|
command: crond -f
|
||||||
volumes:
|
volumes:
|
||||||
- reskreen-data:/app
|
- reskreen-data:/app/config
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
reskreen-data:
|
reskreen-data:
|
||||||
|
driver: local
|
||||||
|
driver_opts:
|
||||||
|
type: none
|
||||||
|
device: /home/prod/Reskreen
|
||||||
|
o: bind
|
||||||
|
Reference in New Issue
Block a user