new file: Dockerfile
new file: Makefile new file: database-migration/Dockerfile new file: database-migration/data.db new file: database-migration/db_migration.py new file: database-migration/migration.py new file: database-migration/requirements.txt new file: docker-compose.migration.yml new file: docker-compose.yml new file: main.py new file: requirements.txt
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
build:
|
||||
podman-compose build
|
||||
|
||||
reload:
|
||||
podman rm authentication_app_1
|
||||
podman rm authentication_db_1
|
||||
podman rm authentication_migration_1
|
||||
|
||||
up:
|
||||
podman-compose up --build
|
||||
|
||||
down:
|
||||
podman-compose down
|
||||
|
||||
restart:
|
||||
make down up
|
||||
|
||||
migrate:
|
||||
cp ../../../server/data/users/auth_data/basis_data/data.db database-migration/data.db
|
||||
# make reload
|
||||
# podman-compose -f docker-compose.yml -f docker-compose.migration.yml up --build
|
||||
podman-compose -f docker-compose.migration.yml up --build
|
||||
|
||||
migrate-test:
|
||||
podman-compose -f docker-compose.migration.yml up --build
|
||||
Reference in New Issue
Block a user