added redirect docker

This commit is contained in:
Alexander Karpov 2023-08-17 00:37:36 +03:00
parent b7773181ae
commit 13346c0fb4
3 changed files with 30 additions and 7 deletions

7
clipboard.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,10 @@
#!/bin/bash
set -o errexit
set -o pipefail
set -o nounset
python manage.py migrate auth
python manage.py migrate
uvicorn redirect.app:app --port 3000

View File

@ -25,6 +25,26 @@ services:
- "8000:8000"
command: /start
redirect:
build:
context: .
dockerfile: ./compose/local/django/Dockerfile
image: akarpov_local_redirect
container_name: akarpov_local_redirect
platform: linux/x86_64
depends_on:
- postgres
- redis
- mailhog
volumes:
- .:/app:z
env_file:
- ./.envs/.local/.django
- ./.envs/.local/.postgres
ports:
- "3000:3000"
command: /start_redirect
postgres:
build:
context: .