1
0
Fork 0
This commit is contained in:
Ilya Mukhortov 2024-07-15 21:31:16 +10:00
parent 1f64a94b32
commit b0d3fbb3c6
3 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,18 @@
version: '3'
services:
service-messaging:
restart: "always"
image: docker.med-logic.ru/medicine-ntf:latest
container_name: service-messaging
env_file: .env
environment:
UWSGI_PROCESSES: 2
UWSGI_THREADS: 2
ports:
- "872:80"
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"

View File

@ -0,0 +1,26 @@
set -e
echo "readonly" | docker login docker.med-logic.ru --username readonly --password-stdin
docker pull docker.med-logic.ru/medicine-ntf:latest
read -r -p "Create database? [y/N] " response
if [[ $prompt =~ [yY](es)* ]]
then
cd /root/medicine-config/medicine-stack
docker-compose exec postgres psql -c 'CREATE DATABASE service_messaging' --username=postgres
fi
read -p "Enter organization name: " ORGANIZATION_NAME
SECRET_KEY=$(openssl rand -base64 32)
cat <<EOT >> /root/medicine-config/medicine-remd/.env
SECRET_KEY=$SECRET_KEY
SENTRY_ENABLED='True'
SENTRY_SERVER_NAME=$ORGANIZATION_NAME
EOT

View File

@ -0,0 +1,6 @@
set -e
docker pull docker.med-logic.ru/medicine-ntf:latest
docker-compose stop
docker-compose up -d