luanpoppe commited on
Commit
5eac7d9
·
1 Parent(s): 92b9cc2

feat: nova tentativa com gunicorn

Browse files
Files changed (4) hide show
  1. .dockerignore +1 -1
  2. Dockerfile +3 -1
  3. compose.yaml +1 -1
  4. requirements.txt +0 -0
.dockerignore CHANGED
@@ -4,6 +4,6 @@
4
  # For more help, visit the .dockerignore file reference guide at
5
  # https://docs.docker.com/go/build-context-dockerignore/
6
 
7
- **/.DS_Store
8
  **/__pycache__
9
  **/.venv
 
4
  # For more help, visit the .dockerignore file reference guide at
5
  # https://docs.docker.com/go/build-context-dockerignore/
6
 
7
+ # **/.DS_Store
8
  **/__pycache__
9
  **/.venv
Dockerfile CHANGED
@@ -28,7 +28,9 @@ COPY . .
28
  EXPOSE 8000
29
 
30
  # CMD ["python3", "manage.py", "runserver"]
31
- CMD ["python3", "manage.py", "runserver", "0.0.0.0:8000"]
 
 
32
 
33
  # # Create a non-privileged user that the app will run under.
34
  # # See https://docs.docker.com/go/dockerfile-user-best-practices/
 
28
  EXPOSE 8000
29
 
30
  # CMD ["python3", "manage.py", "runserver"]
31
+ # CMD ["python3", "manage.py", "runserver", "0.0.0.0:8000"]
32
+ # CMD ["gunicorn", "setup.wsgi"]
33
+ CMD ["gunicorn", "setup.wsgi:application", "--bind", ":8000"]
34
 
35
  # # Create a non-privileged user that the app will run under.
36
  # # See https://docs.docker.com/go/dockerfile-user-best-practices/
compose.yaml CHANGED
@@ -5,6 +5,6 @@ services:
5
  ports:
6
  - 8000:8000
7
  volumes:
8
- - db-data:/app/db.sqlite3
9
  volumes:
10
  db-data:
 
5
  ports:
6
  - 8000:8000
7
  volumes:
8
+ - ./db-data:/app/db.sqlite3
9
  volumes:
10
  db-data:
requirements.txt CHANGED
Binary files a/requirements.txt and b/requirements.txt differ