initial commit

This commit is contained in:
behruz-dev
2025-08-28 13:05:11 +05:00
commit 8ac8fd8787
58 changed files with 783 additions and 0 deletions

52
docker-compose.yaml Normal file
View File

@@ -0,0 +1,52 @@
networks:
horeca:
driver: bridge
volumes:
pg_data: null
services:
nginx:
networks:
- horeca
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:
- horeca
build:
context: .
dockerfile: ./docker/Dockerfile.web
command: ${COMMAND:-sh ./resources/scripts/entrypoint.sh}
environment:
- PYTHONPYCACHEPREFIX=/var/cache/pycache
volumes:
- './:/code'
depends_on:
- db
- redis
db:
image: postgres:17
networks:
- horeca
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- pg_data:/var/lib/postgresql/data
redis:
networks:
- horeca
image: redis