Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions homework-11/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
DB_USER=main
DB_PSWD=main
DB_NAME=main
DB_HOST=localhost
DB_PORT=54321
5 changes: 5 additions & 0 deletions homework-11/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
data
// .env*
!.env_development
node_modules
.vscode/
7 changes: 7 additions & 0 deletions homework-11/.sequelizerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const path = require('path');

module.exports = {
"config": path.resolve('./src/config', 'config.js'),
"models-path": path.resolve('./src/models'),
"migrations-path": path.resolve('./src/migrations')
};
13 changes: 13 additions & 0 deletions homework-11/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: '2'
services:
dbmain:
container_name: db-main
image: postgres:9.6.2-alpine
environment:
POSTGRES_USER: main
POSTGRES_DB: main
POSTGRES_PASSWORD: main
ports:
- 54321:5432
volumes:
- ./data:/var/lib/postgresql/data
Loading