add medicine import
This commit is contained in:
parent
6b35d04834
commit
3a4138dcc3
|
|
@ -0,0 +1,21 @@
|
||||||
|
|
||||||
|
version: '3.4'
|
||||||
|
|
||||||
|
services:
|
||||||
|
|
||||||
|
medicine-import:
|
||||||
|
restart: "always"
|
||||||
|
container_name: "medicine-import"
|
||||||
|
image: docker.med-logic.ru/medicine-import:latest
|
||||||
|
environment:
|
||||||
|
POSTGRES_HOST: postgres-host
|
||||||
|
POSTGRES_USER: postgres
|
||||||
|
POSTGRES_PASSWORD: password
|
||||||
|
POSTGRES_DB: medicine_import
|
||||||
|
|
||||||
|
REDIS_HOST: redis-host
|
||||||
|
REDIS_DB: 12
|
||||||
|
volumes:
|
||||||
|
- ./public:/app/public
|
||||||
|
ports:
|
||||||
|
- "9350:80"
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
set -e
|
||||||
|
|
||||||
|
echo "readonly" | docker login docker.med-logic.ru --username readonly --password-stdin
|
||||||
|
|
||||||
|
docker pull docker.med-logic.ru/medicine-import:latest
|
||||||
|
|
||||||
|
cd /root/medicine-config/medicine-stack
|
||||||
|
docker-compose exec postgres psql -c 'CREATE DATABASE medicine_import' --username=postgres
|
||||||
|
|
||||||
|
cd /root/medicine-config/medicine-import
|
||||||
|
docker-compose run --rm medicine-import python manage.py post_install
|
||||||
|
docker-compose up -d
|
||||||
Loading…
Reference in New Issue