1
0
Fork 0
This commit is contained in:
Ilya Mukhortov 2023-01-07 20:38:12 +10:00
parent af4cdb9141
commit 9d0514b917
3 changed files with 22 additions and 0 deletions

View File

@ -26,6 +26,7 @@ post_update() {
docker-compose run --rm app python manage.py directory_importdata all docker-compose run --rm app python manage.py directory_importdata all
docker-compose run --rm app python manage.py collectstatic --noinput docker-compose run --rm app python manage.py collectstatic --noinput
docker-compose run --rm app python manage.py post_update docker-compose run --rm app python manage.py post_update
docker-compose run --rm app python manage.py catalog2_importdata
} }
docker_cleanup() { docker_cleanup() {

View File

@ -3,3 +3,8 @@
set -e set -e
docker exec -i medicine-stack-postgres psql -U postgres -d medicine -f /files/backup.sql docker exec -i medicine-stack-postgres psql -U postgres -d medicine -f /files/backup.sql
docker exec -i redmine-postgres psql -U redmine-user -d redmine -f /redmine.sql
docker-compose exec postgres pg_dump --no-owner -U postgres -F p "medicine_1" > "medicine.sql"
docker-compose exec postgres pg_dump --no-owner -U postgres -F p "medicine2" > "medicine2.sql"

View File

@ -0,0 +1,16 @@
version: '3'
services:
thumbgen:
restart: "always"
image: "docker.med-logic.ru/thumbgen:latest"
container_name: "service-thumbgen"
ports:
- "820:80"
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"