main
ifiguero 2023-12-19 10:04:57 -03:00
parent 898e947c74
commit fa6f2528f3
5 changed files with 178 additions and 0 deletions

13
Dockerfile.admin 100644
View File

@ -0,0 +1,13 @@
FROM python:3.11-alpine
RUN apk update
RUN apk add git
RUN git clone https://72d861f982d2a76275d5b8178fe0633b19c43d33@dev.ilab.cl/TDTP/admin_transporte_backend /srv
WORKDIR /srv
RUN pip install -r requirements.txt
ENTRYPOINT ["python3"]
CMD ["project/manage.py", "runserver", "0.0.0.0:4000"]

13
Dockerfile.cms 100644
View File

@ -0,0 +1,13 @@
FROM python:3.11-alpine
RUN apk update
RUN apk add git
RUN git clone https://72d861f982d2a76275d5b8178fe0633b19c43d33@dev.ilab.cl/TDTP/cms_backend /srv
WORKDIR /srv
RUN pip install -r myproject/requirements.txt
ENTRYPOINT ["python3"]
CMD ["myproject/manage.py", "runserver", "0.0.0.0:4000"]

View File

@ -0,0 +1,13 @@
FROM python:3.11-alpine
RUN apk update
RUN apk add git
RUN git clone https://72d861f982d2a76275d5b8178fe0633b19c43d33@dev.ilab.cl/TDTP/paraderos_backend /srv
WORKDIR /srv
RUN pip install -r requirements.txt
ENTRYPOINT ["python3"]
CMD ["project/manage.py", "runserver", "0.0.0.0:4000"]

12
Dockerfile.proto 100644
View File

@ -0,0 +1,12 @@
FROM python:3.11-alpine
RUN apk update
RUN apk add git
RUN git clone https://72d861f982d2a76275d5b8178fe0633b19c43d33@dev.ilab.cl/TDTP/proto_backend /srv
WORKDIR /srv
RUN pip install -r requirements.txt
ENTRYPOINT ["watch"]
CMD ["-n", "30", "-t", "python", "main.py"]

127
docker-compose.yaml 100644
View File

@ -0,0 +1,127 @@
version: '3'
services:
tdtp-admin:
build:
dockerfile: Dockerfile.admin
image: dev.ilab.cl/tdtp/tdtp_admin:latest
ports:
- 4000:4000
environment:
- PORT=4000
- DBHOST=db
- DBPORT=5432
- DBNAME=database
- DBSCHEMA=desarrollo1
- DBUSER=postgres
- DBPASS=password
- DB_REDIS_HOST=dbproto
- DB_REDIS_PORT=6379
- SECRET_JWT="kf6Jc!f30Z!1k1N0#!%#"
- SQLALCHEMY_DATABASE_URI=postgresql+psycopg2://dev_feed:testing99901@db01.tdtp.ilab.cl/devrt
- TIMEOUT=1200
# logging:
# driver: syslog
# options:
# syslog-address: "udp://rsyslog.vpc.ilab.cl:514"
# tag: "{{.Name}}"
tdtp-paraderos:
build:
dockerfile: Dockerfile.paraderos
image: dev.ilab.cl/tdtp/tdtp_paraderos:latest
ports:
- 4001:4000
environment:
- PORT=4000
- TRANSPORTE_API=https://transporte.hz.kursor.cl/api
- TRANSPORTE_USER=usuario1
- TRANSPORTE_PASS=usuario1
- DBHOST=db
- DBPORT=5432
- DBNAME=database
- DBSCHEMA=desarrollo1
- DBUSER=postgres
- DBPASS=password
- DB_REDIS_HOST=dbproto
- DB_REDIS_PORT=6379
- SECRET_JWT="kf6Jc!f30Z!1k1N0#!%#"
- SQLALCHEMY_DATABASE_URI=postgresql+psycopg2://dev_feed:testing99901@db01.tdtp.ilab.cl/devrt
- TIMEOUT=1200
# logging:
# driver: syslog
# options:
# syslog-address: "udp://rsyslog.vpc.ilab.cl:514"
# tag: "{{.Name}}"
tdtp-cms:
build:
dockerfile: Dockerfile.cms
image: dev.ilab.cl/tdtp/tdtp_cms:latest
ports:
- 4002:4000
environment:
- PORT=4000
- DBHOST=db
- DBPORT=5432
- DBNAME=database
- DBSCHEMA=desarrollo1
- DBUSER=postgres
- DBPASS=password
- DB_REDIS_HOST=dbproto
- DB_REDIS_PORT=6379
- SECRET_JWT="kf6Jc!f30Z!1k1N0#!%#"
- SQLALCHEMY_DATABASE_URI=postgresql+psycopg2://dev_feed:testing99901@db01.tdtp.ilab.cl/devrt
- TIMEOUT=1200
# logging:
# driver: syslog
# options:
# syslog-address: "udp://rsyslog.vpc.ilab.cl:514"
# tag: "{{.Name}}"
tdtp-proto:
build:
dockerfile: Dockerfile.proto
image: dev.ilab.cl/tdtp/tdtp_proto:latest
ports:
- 4005:4000
environment:
- TZ=America/Santiago
- PORT=4000
- DBHOST=db
- DBPORT=5432
- DBNAME=database
- DBSCHEMA=desarrollo1
- DBUSER=postgres
- DBPASS=password
- DB_REDIS_HOST=dbproto
- DB_REDIS_PORT=6379
- SECRET_JWT="kf6Jc!f30Z!1k1N0#!%#"
- SQLALCHEMY_DATABASE_URI=postgresql+psycopg2://dev_feed:testing99901@db01.tdtp.ilab.cl/devrt
- TIMEOUT=1200
# logging:
# driver: syslog
# options:
# syslog-address: "udp://rsyslog.vpc.ilab.cl:514"
# tag: "{{.Name}}"
dbproto:
image: redis:7.2-alpine
ports:
- 6379:6379
db:
# image: postgis/postgis:14-3.4-alpine
image: postgres:14-alpine-geometry
ports:
- 5436:5432
environment:
POSTGRES_PASSWORD: password
POSTGRES_DB: database