Skip to content

Commit

Permalink
Initialize Postgres, Sequelize
Browse files Browse the repository at this point in the history
  • Loading branch information
Keskimaki committed Jan 26, 2023
1 parent 085bb51 commit 113ceb9
Show file tree
Hide file tree
Showing 9 changed files with 804 additions and 5 deletions.
13 changes: 13 additions & 0 deletions docker-compose.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,20 @@ services:
context: .
args:
- E2E=true
environment:
- POSTGRES_HOST=db
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DATABASE=postgres
command: ['npm', 'run', 'start:test']
ports:
- 8000:8000
container_name: kliksutin_test

db:
image: postgres:15.1
environment:
- POSTGRES_PASSWORD=postgres
ports:
- 5432:5432
container_name: kliksutin_test_db
19 changes: 19 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,27 @@ services:
context: ./
dockerfile: dev.Dockerfile
image: kliksutin_dev
environment:
- POSTGRES_HOST=db
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DATABASE=postgres
volumes:
- ./:/usr/src/app
ports:
- 3000:3000
container_name: kliksutin_dev

db:
image: postgres:15.1
environment:
- PGDATA=/data
- POSTGRES_PASSWORD=postgres
ports:
- 5432:5432
volumes:
- pg_data:/data
container_name: kliksutin_db

volumes:
pg_data:
Loading

0 comments on commit 113ceb9

Please sign in to comment.