feat: configure docker image deployment with Gitea Container Registry
- Replace local build with pre-built image from Gitea registry - Add docker-compose.override.yml for local development with Dockerfile - Add .dockerignore to exclude unnecessary files from build - Update image reference to gitea.onecluster.org/oneteam/don_confiao_backend:latest Refs #37
This commit is contained in:
17
.dockerignore
Normal file
17
.dockerignore
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
__pycache__/
|
||||||
|
*.py[cod]
|
||||||
|
*$py.class
|
||||||
|
*.so
|
||||||
|
.Python
|
||||||
|
*.db
|
||||||
|
*.sqlite3
|
||||||
|
.env
|
||||||
|
.venv
|
||||||
|
venv/
|
||||||
|
ENV/
|
||||||
|
.git/
|
||||||
|
*.egg-info/
|
||||||
|
dist/
|
||||||
|
build/
|
||||||
|
.coverage
|
||||||
|
htmlcov/
|
||||||
11
docker-compose.override.yml
Normal file
11
docker-compose.override.yml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
services:
|
||||||
|
django:
|
||||||
|
build:
|
||||||
|
context: ./
|
||||||
|
dockerfile: django.Dockerfile
|
||||||
|
volumes:
|
||||||
|
- ./tienda_ilusion:/app/
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
ports:
|
||||||
|
- "7000:9090"
|
||||||
@@ -1,8 +1,6 @@
|
|||||||
services:
|
services:
|
||||||
django:
|
django:
|
||||||
build:
|
image: gitea.onecluster.org/oneteam/don_confiao_backend:latest
|
||||||
context: ./
|
|
||||||
dockerfile: django.Dockerfile
|
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
Reference in New Issue
Block a user