chore: update .dockerignore to include Pipfile and Pipfile.lock, add cryptography to requirements.txt, and modify compose-test.yaml for port mapping and volume path
This commit is contained in:
parent
25f86068d0
commit
95515754cc
@ -15,7 +15,6 @@ __pycache__/
|
||||
.gitignore
|
||||
|
||||
# 忽略依赖文件(除非你希望它们存在于镜像中)
|
||||
requirements.txt
|
||||
Pipfile
|
||||
Pipfile.lock
|
||||
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
my-django:
|
||||
image: gitea.xkkxyy.com/Kai/my-django:latest
|
||||
image: my-django:latest
|
||||
command: ["uvicorn", "mysite.asgi:application", "--host=0.0.0.0", "--port=80", "--reload"]
|
||||
ports:
|
||||
- 8080:80
|
||||
deploy:
|
||||
mode: replicated
|
||||
replicas: 1
|
||||
@ -11,4 +11,4 @@ services:
|
||||
env: test
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /opt/docker/data:/tmp/data
|
||||
- ../../my-django:/opt/my-django
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
uvicorn
|
||||
cryptography
|
||||
Django~=5.1.5
|
||||
djangorestframework~=3.15.2
|
||||
django-filter~=25.1
|
||||
|
||||
Loading…
Reference in New Issue
Block a user