chartManD commited on
Commit
9e40f0e
·
1 Parent(s): 18a779b

Creacion de docker compose

Browse files
Files changed (3) hide show
  1. Dockerfile +0 -2
  2. cata_system/settings.py +1 -1
  3. docker-compose.yml +7 -0
Dockerfile CHANGED
@@ -1,7 +1,5 @@
1
  FROM ubuntu:24.04
2
 
3
- ENV DEBIAN_FRONTEND=noninteractive
4
-
5
  RUN apt-get update && apt-get install -y \
6
  build-essential \
7
  libpq-dev \
 
1
  FROM ubuntu:24.04
2
 
 
 
3
  RUN apt-get update && apt-get install -y \
4
  build-essential \
5
  libpq-dev \
cata_system/settings.py CHANGED
@@ -25,7 +25,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
25
  # See https://docs.djangoproject.com/en/5.2/howto/deployment/checklist/
26
 
27
  # SECURITY WARNING: keep the secret key used in production secret!
28
- SECRET_KEY = 'django-insecure-u)t2290d+c@$$7@!%@m&=w44$a@haxew8$!!tggh!up-+0-ll('
29
 
30
  # SECURITY WARNING: don't run with debug turned on in production!
31
  DEBUG = True
 
25
  # See https://docs.djangoproject.com/en/5.2/howto/deployment/checklist/
26
 
27
  # SECURITY WARNING: keep the secret key used in production secret!
28
+ SECRET_KEY = os.getenv("DJANGO_SECRET_KEY")
29
 
30
  # SECURITY WARNING: don't run with debug turned on in production!
31
  DEBUG = True
docker-compose.yml CHANGED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ services: # Definicion de servicios. Se convertiran en contendores [Requerido]
2
+ app-django-cata-system: # Nombre del servicio para control de Docker Compose [Requerido]
3
+ hostname: django-cata-system # Nombre del host, [No requerido]
4
+ container_name: django-cata-system # Nombre del contenedor para Docker [No requerido]
5
+ build: .
6
+ ports: # Mapeo de puertos -> sintaxis= puerto del host físico (no debe estar ocupado al momento de crear el contenedor):puerto del contendor [No requerido, depende de si necesita conectividad al exterior]
7
+ - "9495:7860" # -"[host:]container[/protocol]"