Docker compose konfiguratsiyasini yangilandi va xizmatlar uchun yangi buyruqlar qo'shildi.

This commit is contained in:
A'zamov Samandar
2025-04-21 18:42:21 +05:00
parent 5ce665b643
commit d39f9a23f3
228 changed files with 36071 additions and 115 deletions

View File

@@ -0,0 +1,19 @@
networks:
lamenu:
external: true
name: lamenu
services:
app:
labels:
- "traefik.enable=true"
- "traefik.http.routers.order.rule=PathPrefix(`/order`)"
- "traefik.http.routers.order.entrypoints=web"
- "traefik.http.services.order.loadbalancer.server.port=80"
# - "traefik.http.middlewares.order-strip-prefix.stripPrefix.prefixes=/order"
# - "traefik.http.routers.order.middlewares=order-strip-prefix"
build:
dockerfile: Dockerfile
context: .
volumes:
- ./:/code

View File

@@ -1,5 +1,5 @@
#!/bin/bash
python3 manage.py collectstatus --no-input
python3 manage.py collectstatic --no-input
python3 manage.py migrate --no-input
python3 manage.py runserver 0.0.0.0:8000