Features: 1) Add Dockerfile.app with author label for application container; 2) Add CODEOWNERS file for ownership management; 3) Introduce Dockerfile.storefront for storefront container; 4) Add .gitkeep file for storefront folder;
Fixes: 1) Update `docker-compose.yml` to use `Dockerfile.app` instead of default build context; Extra: 1) Add commented-out `storefront` service in `docker-compose.yml` for potential future use; 2) Minor cleanup and structuring of Docker setup;
This commit is contained in:
parent
7a1853ce02
commit
8961029176
5 changed files with 42 additions and 4 deletions
31
CODEOWNERS
Normal file
31
CODEOWNERS
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
* @default-owner
|
||||||
|
|
||||||
|
README.md @fureunoir contact@fureunoir.com
|
||||||
|
|
||||||
|
LICENSE @fureunoir contact@fureunoir.com
|
||||||
|
|
||||||
|
Dockerfile* @fureunoir contact@fureunoir.com
|
||||||
|
docker-compose.yml @fureunoir contact@fureunoir.com
|
||||||
|
.gitignore @fureunoir contact@fureunoir.com
|
||||||
|
.dockerignore @fureunoir contact@fureunoir.com
|
||||||
|
nginx @fureunoir contact@fureunoir.com
|
||||||
|
pyproject.toml @fureunoir contact@fureunoir.com
|
||||||
|
poetry.lock @fureunoir contact@fureunoir.com
|
||||||
|
|
||||||
|
/blog/ @fureunoir contact@fureunoir.com
|
||||||
|
/core/ @fureunoir contact@fureunoir.com
|
||||||
|
/evibes/ @fureunoir contact@fureunoir.com
|
||||||
|
/payments/ @fureunoir contact@fureunoir.com
|
||||||
|
/scripts/ @fureunoir contact@fureunoir.com
|
||||||
|
/vibes_auth/ @fureunoir contact@fureunoir.com
|
||||||
|
/storefront/ @SaVBaD savbad@wiseless.xyz
|
||||||
|
|
||||||
|
*.py @fureunoir contact@fureunoir.com
|
||||||
|
*.bat @fureunoir contact@fureunoir.com
|
||||||
|
*.sh @fureunoir contact@fureunoir.com
|
||||||
|
*.po @fureunoir contact@fureunoir.com
|
||||||
|
*.mo @fureunoir contact@fureunoir.com
|
||||||
|
*.html @savbad savbad@wiseless.xyz
|
||||||
|
*.js @savbad savbad@wiseless.xyz
|
||||||
|
*.vue @savbad savbad@wiseless.xyz
|
||||||
|
*.scss @savbad savbad@wiseless.xyz
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
# syntax=docker/dockerfile:1
|
# syntax=docker/dockerfile:1
|
||||||
FROM python:3.12-bookworm
|
FROM python:3.12-bookworm
|
||||||
|
LABEL authors="fureunoir"
|
||||||
|
|
||||||
ENV PYTHONDONTWRITEBYTECODE=1 \
|
ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||||
PYTHONUNBUFFERED=1 \
|
PYTHONUNBUFFERED=1 \
|
||||||
2
Dockerfile.storefront
Normal file
2
Dockerfile.storefront
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
FROM node:23.11
|
||||||
|
LABEL authors="savbad"
|
||||||
|
|
@ -7,7 +7,7 @@ x-logging:
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
container_name: app
|
container_name: app
|
||||||
build: .
|
build: Dockerfile.app
|
||||||
restart: always
|
restart: always
|
||||||
command: >
|
command: >
|
||||||
sh -c "poetry run python manage.py await_services &&
|
sh -c "poetry run python manage.py await_services &&
|
||||||
|
|
@ -42,7 +42,7 @@ services:
|
||||||
|
|
||||||
worker:
|
worker:
|
||||||
container_name: worker
|
container_name: worker
|
||||||
build: .
|
build: Dockerfile.app
|
||||||
restart: always
|
restart: always
|
||||||
command: >
|
command: >
|
||||||
sh -c "poetry run celery -A evibes worker --loglevel=info --concurrency=4 --autoscale=4,2 --max-tasks-per-child=100 --max-memory-per-child=512000 --soft-time-limit=10800 --time-limit=21600"
|
sh -c "poetry run celery -A evibes worker --loglevel=info --concurrency=4 --autoscale=4,2 --max-tasks-per-child=100 --max-memory-per-child=512000 --soft-time-limit=10800 --time-limit=21600"
|
||||||
|
|
@ -64,7 +64,7 @@ services:
|
||||||
|
|
||||||
beat:
|
beat:
|
||||||
container_name: beat
|
container_name: beat
|
||||||
build: .
|
build: Dockerfile.app
|
||||||
restart: always
|
restart: always
|
||||||
command: sh -c "poetry run celery -A evibes beat -l info --scheduler django_celery_beat.schedulers:DatabaseScheduler"
|
command: sh -c "poetry run celery -A evibes beat -l info --scheduler django_celery_beat.schedulers:DatabaseScheduler"
|
||||||
volumes:
|
volumes:
|
||||||
|
|
@ -106,7 +106,7 @@ services:
|
||||||
|
|
||||||
flower:
|
flower:
|
||||||
container_name: flower
|
container_name: flower
|
||||||
build: .
|
build: Dockerfile.app
|
||||||
restart: always
|
restart: always
|
||||||
command: sh -c "poetry run celery -A evibes --broker=$CELERY_BROKER_URL flower --address=0.0.0.0 --port=5555 --basic_auth=$FLOWER_USER:$FLOWER_PASSWORD"
|
command: sh -c "poetry run celery -A evibes --broker=$CELERY_BROKER_URL flower --address=0.0.0.0 --port=5555 --basic_auth=$FLOWER_USER:$FLOWER_PASSWORD"
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|
@ -117,5 +117,9 @@ services:
|
||||||
- .env
|
- .env
|
||||||
logging: *default-logging
|
logging: *default-logging
|
||||||
|
|
||||||
|
# storefront:
|
||||||
|
# container_name: storefront
|
||||||
|
# build: Dockerfile.storefront
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
es-data:
|
es-data:
|
||||||
|
|
|
||||||
0
storefront/.gitkeep
Normal file
0
storefront/.gitkeep
Normal file
Loading…
Reference in a new issue