changement d'emplacement des fichiers config spécifiques à l'environnement
Some checks failed
Build and Push Docker Image / build (push) Failing after 17s

This commit is contained in:
2024-07-16 03:08:04 +02:00
parent 9b287b5ff7
commit a4fc5acec4
6 changed files with 9 additions and 4 deletions

2
.gitignore vendored
View File

@@ -368,7 +368,7 @@ venv
*migrations/ *migrations/
Reskreen/server_config.py server_config.py
./db.sqlite3 ./db.sqlite3
db.sqlite3 db.sqlite3
media/ media/

View File

@@ -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

View File

@@ -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