@@ -1,19 +1,19 | |||
|
1 | 1 | |
|
2 | 2 | REDIS_HOST=radarsys-redis |
|
3 | 3 | REDIS_PORT=6300 |
|
4 | 4 | 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 |
|
14 | 14 | # DB_PASSWORD=docker |
|
15 | 15 | PGDATA=/var/lib/postgresql/data |
|
16 | 16 | LC_ALL=C.UTF-8 |
|
17 | 17 | TZ=America/Lima |
|
18 | 18 | DOCKER_DATA=/data/dockers/radarsys/ |
|
19 | 19 | LOCAL_IP=192.168.1.128 No newline at end of file |
@@ -1,7 +1,8 | |||
|
1 | 1 | pipLibraries/ |
|
2 | 2 | .DS_Store |
|
3 | 3 | *.sqlite |
|
4 | 4 | .vscode/ |
|
5 | 5 | *.pyc |
|
6 | 6 | .env |
|
7 | 7 | remove_migrations.py |
|
8 | migrations/ |
@@ -1,39 +1,39 | |||
|
1 | 1 | FROM python:3.9.16-slim-bullseye |
|
2 | 2 | |
|
3 | 3 | # set working directory |
|
4 | 4 | RUN mkdir /radarsys |
|
5 | 5 | RUN pwd |
|
6 | 6 | WORKDIR /radarsys |
|
7 | 7 | COPY /pipLibraries ./ |
|
8 | 8 | RUN pwd |
|
9 | 9 | RUN ls -al |
|
10 | 10 | |
|
11 | 11 | # Install python dependences |
|
12 | 12 | 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 | |
|
35 | 35 | # Copy the main application. |
|
36 | 36 | COPY . ./ |
|
37 | 37 | |
|
38 | 38 | EXPOSE 8000 |
|
39 | 39 |
@@ -1,74 +1,75 | |||
|
1 |
version: ' |
|
|
1 | version: '3' | |
|
2 | 2 | services: |
|
3 | 3 | # Django app |
|
4 | 4 | web: |
|
5 | 5 | container_name: 'radarsys' |
|
6 | 6 | build: . |
|
7 | 7 | restart: always |
|
8 | 8 | image: radarsys |
|
9 | 9 | command: gunicorn radarsys.wsgi:application -w 2 -b :8000 |
|
10 | 10 | #command: python manage.py runserver 0.0.0.0:8000 |
|
11 | 11 | ports: |
|
12 | 12 | - 8000:8000 |
|
13 | 13 | #ports: |
|
14 | 14 | # - 8030:8030 |
|
15 | 15 | env_file: .env |
|
16 | 16 | |
|
17 | 17 | links: |
|
18 | 18 | # - redis |
|
19 | 19 | - postgres |
|
20 | 20 | volumes: |
|
21 | 21 | - './:/radarsys' |
|
22 | 22 | - '${DOCKER_DATA}/static:/radarsys/static' |
|
23 | 23 | depends_on: |
|
24 | 24 | # - redis |
|
25 | 25 | - postgres |
|
26 | 26 | |
|
27 | 27 | # redis: |
|
28 | 28 | # container_name: 'radarsys-redis' |
|
29 | 29 | # image: 'redis:3.2-alpine' |
|
30 | 30 | # volumes: |
|
31 | 31 | # - '${DOCKER_DATA}/redis:/data' |
|
32 | 32 | |
|
33 | 33 | # celery_worker: |
|
34 | 34 | # container_name: 'radarsys-celery' |
|
35 | 35 | # image: radarsys |
|
36 | 36 | # env_file: .env |
|
37 | 37 | # command: celery -A radarsys worker -l info |
|
38 | 38 | # volumes_from: |
|
39 | 39 | # - web |
|
40 | 40 | # depends_on: |
|
41 | 41 | # - web |
|
42 | 42 | |
|
43 | 43 | # PostgreSQL |
|
44 | 44 | postgres: |
|
45 | 45 | container_name: 'radarsys-postgres' |
|
46 | 46 | build: ./postgres/ |
|
47 | 47 | volumes: |
|
48 | 48 | - ./postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d |
|
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 |
|
59 | 60 | nginx: |
|
60 | 61 | container_name: 'radarsys-nginx' |
|
61 | 62 | restart: always |
|
62 | 63 | build: ./nginx/ |
|
63 | 64 | ports: |
|
64 | 65 | - '8030:8030' |
|
65 | 66 | volumes_from: |
|
66 | 67 | - web |
|
67 | 68 | links: |
|
68 | 69 | - web:web |
|
69 | 70 | depends_on: |
|
70 | 71 | - web |
|
71 | 72 | |
|
72 | 73 | volumes: |
|
73 | 74 | pgdata: |
|
74 | 75 | driver: local |
@@ -1,5 +1,6 | |||
|
1 | 1 | 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 |
@@ -1,14 +1,14 | |||
|
1 | 1 | Django==4.1.5 |
|
2 | 2 | django-bootstrap5==22.2 |
|
3 | 3 | psycopg2-binary==2.9.5 |
|
4 | 4 | django-polymorphic==3.1 |
|
5 | 5 | bokeh==3.0.3 |
|
6 | 6 | numpy==1.24.1 |
|
7 | 7 | matplotlib==3.6.3 |
|
8 | 8 | scipy==1.10.0 |
|
9 | 9 | celery==5.2.7 |
|
10 | 10 | gunicorn==20.1.0 |
|
11 | 11 | requests==2.28.2 |
|
12 | 12 | redis==4.4.2 |
|
13 | 13 | channels==4.0.0 |
|
14 | daphne==4.0.0 | |
|
14 | daphne==4.0.0 No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now