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
Some checks failed
test / build (push) Successful in 5s
test / deploy (push) Failing after 2s

This commit is contained in:
Kai 2025-03-24 13:58:19 +08:00
parent 25f86068d0
commit 95515754cc
3 changed files with 5 additions and 5 deletions

View File

@ -15,7 +15,6 @@ __pycache__/
.gitignore .gitignore
# 忽略依赖文件(除非你希望它们存在于镜像中) # 忽略依赖文件(除非你希望它们存在于镜像中)
requirements.txt
Pipfile Pipfile
Pipfile.lock Pipfile.lock

View File

@ -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

View File

@ -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