1
0
Fork 0

medicine call

This commit is contained in:
Ilya Mukhortov 2025-02-25 21:50:13 +10:00
parent 1704e1b4d2
commit d3b4d1ac32
5 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,21 @@
version: '3'
services:
medicine-call:
restart: "always"
image: docker.med-logic.ru/medicine-call:latest
container_name: medicine-call
env_file: .env
ports:
- "878:80"
networks:
- medicine-network
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
networks:
medicine-network:
external: true

3
medicine-call/enter.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
docker-compose exec medicine-call bash

16
medicine-call/install.sh Executable file
View File

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

2
medicine-call/restart.sh Executable file
View File

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

7
medicine-call/update.sh Executable file
View File

@ -0,0 +1,7 @@
set -e
docker pull docker.med-logic.ru/medicine-call:latest
docker-compose stop
docker-compose up -d
docker rmi $(docker images -f "dangling=true" -q)