From 838839067af07f0b0c7b610cd7f0775027f583a5 Mon Sep 17 00:00:00 2001 From: Morgan Ekmefjord Date: Thu, 12 Dec 2024 18:18:55 +0100 Subject: [PATCH] Adding single container test docker-compose yml. --- docker-compose-single.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 docker-compose-single.yml diff --git a/docker-compose-single.yml b/docker-compose-single.yml new file mode 100644 index 0000000..10f4d30 --- /dev/null +++ b/docker-compose-single.yml @@ -0,0 +1,37 @@ +version: '3.8' + +services: + p2p: + container_name: ptp + image: ghcr.io/pharmbio/ptp:latest + build: + context: ./ptp/ + dockerfile: Dockerfile + #command: sh -c /app/run.sh + #command: > + # sh -c "python manage.py migrate && + # python manage.py collectstatic --noinput && + # python manage.py runserver 0.0.0.0:8000" + + #gunicorn p2p.wsgi:application --bind 0.0.0.0:8000" + volumes: + - ./ptp/:/app # Mount the current directory to the container for live development + ports: + - "8000:8000" + environment: + - MODEL_DIR=/app/tmp/models + - MAX_MODELS=5 + - STAGE=True + #- DATABASE_URL=postgres://postgres:postgres@postgres:5432/postgres + #- REDIS_URL=redis://redis:6379/0 + #- CELERY_BROKER_URL=redis://redis:6379/0 + #- DEBUG=True + #- EMAIL_HOST=smtp.your-email-provider.com + #- EMAIL_PORT="587" + #- EMAIL_USE_TLS="True" + #- EMAIL_HOST_USER=your-email@example.com + #- EMAIL_HOST_PASSWORD=your-email-password + - SITE_URL=http://localhost:8000 + +#volumes: +# postgres_data: \ No newline at end of file