Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
MelvLee authored Jun 4, 2024
0 parents commit e234e5f
Show file tree
Hide file tree
Showing 92 changed files with 24,860 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["@commitlint/config-conventional"]
}
2 changes: 2 additions & 0 deletions .docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM postgres:11.21-alpine
COPY scripts/schema.sql docker-entrypoint-initdb.d/schema.sql
21 changes: 21 additions & 0 deletions .docker/db-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: '3.7'

services:
postgres:
container_name: db
image: db-ci
restart: always
build:
context: .
dockerfile: ./Dockerfile
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=root
ports:
- 5432:5432
networks:
- brp-api-network

networks:
brp-api-network:
name: brp-api-network
39 changes: 39 additions & 0 deletions .docker/db.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
version: '3.7'

services:
postgres:
container_name: db
image: postgres:11.21-alpine
restart: always
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=root
ports:
- 5432:5432
volumes:
# - ../src/config/Database:/var/lib/postgresql/data
- ./scripts/schema.sql:/docker-entrypoint-initdb.d/schema.sql:ro
security_opt:
- no-new-privileges:true
# read_only: true
networks:
- brp-api-network

pgadmin:
container_name: pgadmin
image: dpage/pgadmin4:latest
restart: always
environment:
- [email protected]
- PGADMIN_DEFAULT_PASSWORD=root
ports:
- 5433:80
security_opt:
- no-new-privileges:true
# read_only: true
networks:
- brp-api-network

networks:
brp-api-network:
name: brp-api-network
Loading

0 comments on commit e234e5f

Please sign in to comment.