Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AlinaMoon123 committed Dec 19, 2024
1 parent d3cc773 commit 5ba7a5a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions db/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM neo4j:5.12

COPY backups/neo4j.dump /backups/neo4j.dump

COPY restore-script.sh /restore-script.sh

RUN chmod +x /restore-script.sh
Expand Down
Binary file added db/backups/neo4j.dump
Binary file not shown.
4 changes: 2 additions & 2 deletions db/restore-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ else
echo "Дамп не найден. Пропуск восстановления."
fi

# Настройка пароля для пользователя neo4j (можно настроить через переменные окружения)
# Настройка пароля для пользователя neo4j
echo "Настроим пароль пользователя neo4j..."
neo4j-admin dbms set-initial-password "${NEO4J_PASSWORD:-neo4jneo4j}" || echo "Пароль уже настроен"

# Запуск Neo4j в консольном режиме
# Запуск Neo4j
echo "Запускаем Neo4j..."
exec neo4j console
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ services:
NEO4J_AUTH: neo4j/neo4jneo4j
volumes:
- db_data:/data
- ./backups:/backups
healthcheck:
test: ["CMD-SHELL", "cypher-shell -u neo4j -p neo4jneo4j 'RETURN 1' || exit 1"]
interval: 10s
Expand All @@ -40,7 +39,6 @@ services:
volumes:
db_data:
app_data:
backups:


networks:
Expand Down

0 comments on commit 5ba7a5a

Please sign in to comment.