1
0
Fork 0
This commit is contained in:
Ilya Mukhortov 2024-03-29 12:15:45 +10:00
parent fa89aba5f3
commit ec4609083d
3 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,24 @@
version: '3'
services:
medicine-lis-receiver:
restart: "always"
image: docker.med-logic.ru/medicine-receiver:latest
container_name: medicine-receiver
env_file: .env
ports:
- "876:80"
- "5500-5510:5500-5510"
networks:
- medicine-network
volumes:
- ./supervisor_confs:/supervisor_confs
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
networks:
medicine-network:
external: true

18
medicine-lis/install.sh Executable file
View File

@ -0,0 +1,18 @@
set -e
echo "readonly" | docker login docker.med-logic.ru --username readonly --password-stdin
docker pull docker.med-logic.ru/medicine-lis:latest
cd /root/medicine-config/medicine-stack
docker-compose exec postgres psql -c 'CREATE DATABASE medicine_lis' --username=postgres
cat <<EOT >> /root/medicine-config/medicine-lis/.env
POSTGRES_HOST=medicine-stack-postgres
REDIS_HOST=medicine-stack-redis
EOT
cd /root/medicine-config/medicine-lis
docker-compose run --rm medicine-lis python manage.py migrate
docker-compose run --rm medicine-lis python manage.py post_install
docker-compose up -d

2
medicine-lis/restart.sh Normal file
View File

@ -0,0 +1,2 @@
docker-compose stop
docker-compose up -d