update : 27.12.2023 19:37:35,61
This commit is contained in:
parent
90f540ffce
commit
a6fe0ea6a5
@ -3,7 +3,7 @@ version: "3.9"
|
||||
services:
|
||||
postgres:
|
||||
restart: always
|
||||
image: postgres:15
|
||||
image: postgres:12
|
||||
container_name: postgres
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
|
||||
@ -29,7 +29,7 @@ services:
|
||||
env_file:
|
||||
- ../env
|
||||
command: >
|
||||
bash -c "./manage.py collectstatic --noinput && ./manage.py migrate && gunicorn -b 0.0.0.0:8000 repcofkk.wsgi:application"
|
||||
bash -c "python ./manage.py collectstatic --noinput && ./manage.py migrate && gunicorn -b 0.0.0.0:8000 repcofkk.wsgi:application"
|
||||
nginx:
|
||||
build:
|
||||
dockerfile: ./Dockerfile
|
||||
|
||||
@ -12,10 +12,10 @@ server {
|
||||
}
|
||||
|
||||
location /static/ {
|
||||
alias /yt/static/;
|
||||
alias /cybercode/static/;
|
||||
}
|
||||
|
||||
location /media/ {
|
||||
alias /yt/media/;
|
||||
alias /cybercode/media/;
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user