-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding single container test docker-compose yml.
- Loading branch information
1 parent
857acb2
commit 8388390
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 protected] | ||
#- EMAIL_HOST_PASSWORD=your-email-password | ||
- SITE_URL=http://localhost:8000 | ||
|
||
#volumes: | ||
# postgres_data: |