changing stuff
This commit is contained in:
parent
5e5d1015b6
commit
aa04640fb0
|
@ -14,4 +14,4 @@ RUN pip install --upgrade pip && pip install -r requirements.txt
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
ENTRYPOINT ["./entrypoint.sh"]
|
ENTRYPOINT ["./entrypoint.sh"]
|
||||||
CMD ["gunicorn", "tldtest.wsgi:application", "--bind", "0.0.0.0:8000"]
|
CMD ["gunicorn", "tldtest.wsgi:application", "--bind", "0.0.0.0:8000", "--timeout", "600"]
|
|
@ -5,14 +5,6 @@ services:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
command: gunicorn tldtest.wsgi:application --bind 0.0.0.0:8000
|
command: gunicorn tldtest.wsgi:application --bind 0.0.0.0:8000 --timeout 600
|
||||||
ports:
|
ports:
|
||||||
- 8000:8000
|
- 8000:8000
|
||||||
depends_on:
|
|
||||||
- db
|
|
||||||
db:
|
|
||||||
image: postgres:15
|
|
||||||
volumes:
|
|
||||||
- postgres_data:/var/lib/postgresql/data/
|
|
||||||
volumes:
|
|
||||||
postgres_data:
|
|
||||||
|
|
|
@ -1,16 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if [ "$DATABASE" = "postgres" ]
|
|
||||||
then
|
|
||||||
echo "Waiting for postgres..."
|
|
||||||
|
|
||||||
while ! nc -z $SQL_HOST $SQL_PORT; do
|
|
||||||
sleep 0.1
|
|
||||||
done
|
|
||||||
|
|
||||||
echo "PostgreSQL started"
|
|
||||||
fi
|
|
||||||
|
|
||||||
python manage.py makemigrations # Make migrations
|
python manage.py makemigrations # Make migrations
|
||||||
python manage.py migrate # Apply database migrations
|
python manage.py migrate # Apply database migrations
|
||||||
python manage.py collectstatic
|
python manage.py collectstatic
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for TLD in object_list %}
|
{% for TLD in object_list %}
|
||||||
<tr>
|
<tr>
|
||||||
<td class="border border-slate-700">{{ TLD.unicodetld }}</td>
|
<td class="border border-slate-700">.{{ TLD.unicodetld }}</td>
|
||||||
<td class="border border-slate-700 text-l-blue-600">{{ TLD.nsamount }}</td>
|
<td class="border border-slate-700 text-l-blue-600">{{ TLD.nsamount }}</td>
|
||||||
<td class="border border-slate-700 text-red-700">{{ TLD.v4nsamount }}</td>
|
<td class="border border-slate-700 text-red-700">{{ TLD.v4nsamount }}</td>
|
||||||
<td class="border border-slate-700 text-green-600">{{ TLD.v6nsamount }}</td>
|
<td class="border border-slate-700 text-green-600">{{ TLD.v6nsamount }}</td>
|
||||||
|
|
Loading…
Reference in a new issue