Skip to content

Commit

Permalink
add backups to compose
Browse files Browse the repository at this point in the history
  • Loading branch information
verkalacheva committed Aug 11, 2024
1 parent c3b4818 commit 8014942
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compose/docker-compose-DH-DEV.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ services:
command: ./cmd.subjects.sh
volumes:
- ../dbs/subjects_db.sqlite3:/app/db.sqlite3
- ../backups/subjects_db_backup.json:/app/courses/fixtures/subjects_db_backup.json
- ./startscripts/cmd.subjects.sh:/app/cmd.subjects.sh
- static:/app/static/
restart: unless-stopped
Expand All @@ -29,6 +30,7 @@ services:
command: ./cmd.users.sh
volumes:
- ../dbs/users_db.sqlite3:/app/db.sqlite3
- ../backups/users_db_backup.json:/app/users/fixtures/users_db_backup.json
- ./startscripts/cmd.users.sh:/app/cmd.users.sh
- static:/app/static/
depends_on:
Expand All @@ -42,6 +44,7 @@ services:
command: ./cmd.tests.sh
volumes:
- ../dbs/tests_db.sqlite3:/app/db.sqlite3
- ../backups/tests_db_backup.json:/app/tests/fixtures/tests_db_backup.json
- ./startscripts/cmd.tests.sh:/app/cmd.tests.sh
- static:/app/static/
depends_on:
Expand Down
3 changes: 3 additions & 0 deletions compose/docker-compose-DH.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ services:
command: ./cmd.subjects.sh
volumes:
- ../dbs/subjects_db.sqlite3:/app/db.sqlite3
- ../backups/subjects_db_backup.json:/app/courses/fixtures/subjects_db_backup.json
- ./startscripts/cmd.subjects.sh:/app/cmd.subjects.sh
- static:/app/static/
restart: unless-stopped
Expand All @@ -29,6 +30,7 @@ services:
command: ./cmd.users.sh
volumes:
- ../dbs/users_db.sqlite3:/app/db.sqlite3
- ../backups/users_db_backup.json:/app/users/fixtures/users_db_backup.json
- ./startscripts/cmd.users.sh:/app/cmd.users.sh
- static:/app/static/
depends_on:
Expand All @@ -42,6 +44,7 @@ services:
command: ./cmd.tests.sh
volumes:
- ../dbs/tests_db.sqlite3:/app/db.sqlite3
- ../backups/tests_db_backup.json:/app/tests/fixtures/tests_db_backup.json
- ./startscripts/cmd.tests.sh:/app/cmd.tests.sh
- static:/app/static/
depends_on:
Expand Down

0 comments on commit 8014942

Please sign in to comment.