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
|
.gitignore
|
||||||
|
|
||||||
# 忽略依赖文件(除非你希望它们存在于镜像中)
|
# 忽略依赖文件(除非你希望它们存在于镜像中)
|
||||||
requirements.txt
|
|
||||||
Pipfile
|
Pipfile
|
||||||
Pipfile.lock
|
Pipfile.lock
|
||||||
|
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
version: '3'
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
my-django:
|
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"]
|
command: ["uvicorn", "mysite.asgi:application", "--host=0.0.0.0", "--port=80", "--reload"]
|
||||||
|
ports:
|
||||||
|
- 8080:80
|
||||||
deploy:
|
deploy:
|
||||||
mode: replicated
|
mode: replicated
|
||||||
replicas: 1
|
replicas: 1
|
||||||
@ -11,4 +11,4 @@ services:
|
|||||||
env: test
|
env: test
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- /opt/docker/data:/tmp/data
|
- ../../my-django:/opt/my-django
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
uvicorn
|
uvicorn
|
||||||
|
cryptography
|
||||||
Django~=5.1.5
|
Django~=5.1.5
|
||||||
djangorestframework~=3.15.2
|
djangorestframework~=3.15.2
|
||||||
django-filter~=25.1
|
django-filter~=25.1
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user