Skip to content

Commit

Permalink
SQL server migration
Browse files Browse the repository at this point in the history
  • Loading branch information
feeelin committed Mar 15, 2024
1 parent 4ccc585 commit 5cb92a1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
8 changes: 4 additions & 4 deletions cinema/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'ENGINE': 'mssql',
'NAME': 'cinema',
'USER': 'admin',
'PASSWORD': 'admin',
'USER': 'SA',
'PASSWORD': 'feelinMSSQL_2024',
'HOST': 'mssql.feelindev.ru',
'PORTS': '1432'
'OPTIONS': {'driver': 'ODBC Driver 17 for SQL Server'}
}
}

Expand Down
13 changes: 6 additions & 7 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
version: '3'
services:

postgres:
image: postgres
mssql:
image: mcr.microsoft.com/mssql/server:2019-latest
ports:
- "5432:5432"
- 1433:1433
volumes:
- /var/lib/postgresql/data
- ~/apps/mssql/data:/var/lib/mssqlql/data
environment:
POSTGRES_DB: "cinema"
POSTGRES_USER: "admin"
POSTGRES_PASSWORD: "admin"
- ACCEPT_EULA=Y
- SA_PASSWORD=feelinMSSQL_2024

web:
build: ./
Expand Down

0 comments on commit 5cb92a1

Please sign in to comment.