initial commit

This commit is contained in:
2025-08-05 10:26:39 +05:00
commit b7412bbef6
298 changed files with 10533 additions and 0 deletions

81
docker-compose.yml Normal file
View File

@@ -0,0 +1,81 @@
networks:
trustmeuz:
driver: bridge
volumes:
pg_data: null
rabbitmq: null
pycache: null
# minio_certs: null
minio_data: null
services:
nginx:
networks:
- trustmeuz
ports:
- ${PORT:-8001}:80
volumes:
- ./resources/layout/nginx.conf:/etc/nginx/nginx.conf
- ./resources/:/usr/share/nginx/html/resources/
build:
context: .
dockerfile: ./docker/Dockerfile.nginx
depends_on:
- web
web:
networks:
- trustmeuz
build:
context: .
dockerfile: ./docker/Dockerfile.web
restart: no
command: ${COMMAND:-sh ./entrypoint.sh}
environment:
- PYTHONPYCACHEPREFIX=/var/cache/pycache
volumes:
- .:/code
- pycache:/var/cache/pycache
depends_on:
- db
- redis
# - minio
db:
networks:
- trustmeuz
image: postgres:16
restart: no
environment:
POSTGRES_DB: django
POSTGRES_USER: ${DB_USER:-postgres}
POSTGRES_PASSWORD: ${DB_PASSWORD:-2309}
volumes:
- pg_data:/var/lib/postgresql/data
redis:
networks:
- trustmeuz
restart: no
image: redis
minio:
image: minio/minio
container_name: minio
networks:
- trustmeuz
expose:
- 9000
- 9001
ports:
- "9000:9000"
- "9001:9001"
volumes:
- minio_data:/data
environment:
MINIO_ROOT_USER: ${STORAGE_ID}
MINIO_ROOT_PASSWORD: ${STORAGE_KEY}
STORAGE_BUCKET_MEDIA: ${STORAGE_BUCKET_MEDIA}
STORAGE_BUCKET_STATIC: ${STORAGE_BUCKET_STATIC}
command: server --console-address ":9001" /data
# entrypoint: >
# sh -c "chmod +x ./resources/layout/minio-setup.sh && fg"