mirror of
https://github.com/Alexander-D-Karpov/akarpov
synced 2024-11-22 06:16:34 +03:00
added redirect docker
This commit is contained in:
parent
b7773181ae
commit
13346c0fb4
7
clipboard.min.js
vendored
7
clipboard.min.js
vendored
File diff suppressed because one or more lines are too long
10
compose/local/django/start_redirect
Normal file
10
compose/local/django/start_redirect
Normal 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
|
20
local.yml
20
local.yml
|
@ -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: .
|
||||
|
|
Loading…
Reference in New Issue
Block a user