@@ -5,9 +5,9 POSTGRES_PORT_5432_TCP_ADDR=radarsys-postgres | |||
|
5 | 5 | # POSTGRES_PORT_5432_TCP_PORT=5400 |
|
6 | 6 | POSTGRES_PORT_5432_TCP_PORT=5432 |
|
7 | 7 | #POSTGRES_HOST?? DONDE IRIA |
|
8 | POSTGRES_USER=docker | |
|
9 | POSTGRES_PASSWORD=docker | |
|
10 | POSTGRES_DB=radarsys | |
|
8 | # POSTGRES_USER=docker | |
|
9 | # POSTGRES_PASSWORD=docker | |
|
10 | # POSTGRES_DB=radarsys | |
|
11 | 11 | |
|
12 | 12 | # DB_NAME=radarsys |
|
13 | 13 | # DB_USER=docker |
@@ -13,22 +13,22 ADD requirements.txt ./requirements.txt | |||
|
13 | 13 | RUN apt-get clean && apt-get update && apt-get install -y --no-install-recommends \ |
|
14 | 14 | gcc \ |
|
15 | 15 | g++ \ |
|
16 | && pip install -v --timeout 120 --no-cache-dir ./Django-4.1.5-py3-none-any.whl \ | |
|
17 | && pip install -v --timeout 120 --no-cache-dir ./django-bootstrap5-22.2.tar.gz \ | |
|
18 | && pip install -v --timeout 120 --no-cache-dir ./psycopg2_binary-2.9.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl \ | |
|
19 | && pip install -v --timeout 120 --no-cache-dir ./django-polymorphic-3.1.0.tar.gz \ | |
|
20 | && pip install -v --timeout 120 --no-cache-dir ./numpy-1.24.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl \ | |
|
21 | && pip install -v --timeout 120 --no-cache-dir ./bokeh-3.0.3-py3-none-any.whl\ | |
|
22 | && pip install -v --timeout 120 --no-cache-dir ./matplotlib-3.6.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl \ | |
|
23 | && pip install -v --timeout 120 --no-cache-dir ./scipy-1.10.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl \ | |
|
24 | && pip install -v --timeout 120 --no-cache-dir ./celery-5.2.7.tar.gz \ | |
|
25 | && pip install -v --timeout 120 --no-cache-dir ./gunicorn-20.1.0-py3-none-any.whl \ | |
|
26 | && pip install -v --timeout 120 --no-cache-dir ./requests-2.28.2-py3-none-any.whl \ | |
|
27 | && pip install -v --timeout 120 --no-cache-dir ./redis-4.4.2-py3-none-any.whl \ | |
|
28 | && pip install -v --timeout 120 --no-cache-dir ./graphene_django-3.0.0-py2.py3-none-any.whl \ | |
|
29 | && pip install -v --timeout 120 --no-cache-dir ./channels-4.0.0.tar.gz \ | |
|
30 | && pip install -v --timeout 120 --no-cache-dir ./daphne-4.0.0.tar.gz \ | |
|
31 |
|
|
|
16 | # && pip install -v --timeout 120 --no-cache-dir ./Django-4.1.5-py3-none-any.whl \ | |
|
17 | # && pip install -v --timeout 120 --no-cache-dir ./django-bootstrap5-22.2.tar.gz \ | |
|
18 | # && pip install -v --timeout 120 --no-cache-dir ./psycopg2_binary-2.9.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl \ | |
|
19 | # && pip install -v --timeout 120 --no-cache-dir ./django-polymorphic-3.1.0.tar.gz \ | |
|
20 | # && pip install -v --timeout 120 --no-cache-dir ./numpy-1.24.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl \ | |
|
21 | # && pip install -v --timeout 120 --no-cache-dir ./bokeh-3.0.3-py3-none-any.whl\ | |
|
22 | # && pip install -v --timeout 120 --no-cache-dir ./matplotlib-3.6.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl \ | |
|
23 | # && pip install -v --timeout 120 --no-cache-dir ./scipy-1.10.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl \ | |
|
24 | # && pip install -v --timeout 120 --no-cache-dir ./celery-5.2.7.tar.gz \ | |
|
25 | # && pip install -v --timeout 120 --no-cache-dir ./gunicorn-20.1.0-py3-none-any.whl \ | |
|
26 | # && pip install -v --timeout 120 --no-cache-dir ./requests-2.28.2-py3-none-any.whl \ | |
|
27 | # && pip install -v --timeout 120 --no-cache-dir ./redis-4.4.2-py3-none-any.whl \ | |
|
28 | # && pip install -v --timeout 120 --no-cache-dir ./graphene_django-3.0.0-py2.py3-none-any.whl \ | |
|
29 | # && pip install -v --timeout 120 --no-cache-dir ./channels-4.0.0.tar.gz \ | |
|
30 | # && pip install -v --timeout 120 --no-cache-dir ./daphne-4.0.0.tar.gz \ | |
|
31 | && pip install -v --timeout 120 -r requirements.txt --no-cache-dir \ | |
|
32 | 32 | && apt-get purge -y --auto-remove gcc g++\ |
|
33 | 33 | && rm -rf /var/lib/apt/lists/* |
|
34 | 34 |
@@ -1,4 +1,4 | |||
|
1 |
version: ' |
|
|
1 | version: '3' | |
|
2 | 2 | services: |
|
3 | 3 | # Django app |
|
4 | 4 | web: |
@@ -49,10 +49,11 services: | |||
|
49 | 49 | - pgdata:/var/lib/postgresql/data |
|
50 | 50 | ports: |
|
51 | 51 | - 5432:5432 |
|
52 | environment: | |
|
53 | - POSTGRES_PASSWORD=docker | |
|
54 |
- POSTGRES_ |
|
|
55 |
- POSTGRES_ |
|
|
52 | #TEMPORAL, NO DEBE HARDCODEARSE | |
|
53 | # environment: | |
|
54 | # - POSTGRES_PASSWORD=docker | |
|
55 | # - POSTGRES_USER=docker | |
|
56 | # - POSTGRES_DB=radarsys | |
|
56 | 57 | env_file: .env |
|
57 | 58 | |
|
58 | 59 | #Web Server |
@@ -2,4 +2,5 FROM postgres:14.6-alpine | |||
|
2 | 2 | #FROM library/postgres |
|
3 | 3 | |
|
4 | 4 | RUN mkdir -p "$PGDATA" && chmod 700 "$PGDATA" |
|
5 | #COPY ./init.sql /docker-entrypoint-initdb.d/ No newline at end of file | |
|
5 | #COPY ./init.sql /docker-entrypoint-initdb.d/ | |
|
6 | COPY init.sql /docker-entrypoint-initdb.d/ No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now