1
0
Fork 0
This commit is contained in:
Ilya Mukhortov 2024-01-09 14:28:35 +10:00
parent 0471d424bf
commit 9d99d1cc10
2 changed files with 3 additions and 3 deletions

View File

@ -19,8 +19,8 @@ services:
- "875:80" - "875:80"
networks: networks:
- medicine-network - medicine-network
extra_hosts: #extra_hosts:
- "host.docker.internal:host-gateway" # - "host.docker.internal:host-gateway"
external_links: external_links:
- "postgres:postgres-host" - "postgres:postgres-host"
- "redis:redis-host" - "redis:redis-host"

View File

@ -5,7 +5,7 @@ echo "readonly" | docker login docker.med-logic.ru --username readonly --passwor
docker pull docker.med-logic.ru/medicine-import:latest docker pull docker.med-logic.ru/medicine-import:latest
cd /root/medicine-config/medicine-stack cd /root/medicine-config/medicine-stack
docker-compose exec postgres psql -c 'CREATE DATABASE IF NOT EXISTS medicine_import' --username=postgres docker-compose exec postgres psql -c 'CREATE DATABASE medicine_import' --username=postgres
cd /root/medicine-config/medicine-import cd /root/medicine-config/medicine-import
docker-compose run --rm medicine-import python manage.py post_install docker-compose run --rm medicine-import python manage.py post_install