Skip to content

Commit

Permalink
Trivial
Browse files Browse the repository at this point in the history
  • Loading branch information
pm1100tm committed May 16, 2024
1 parent 175fd5f commit 4e649ac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ services:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=backend

healthcheck:
test: ['CMD', 'pg_isready', '-U', 'postgres']

Expand All @@ -36,6 +37,7 @@ services:
build:
context: .
dockerfile: ./docker/Dockerfile.local
restart: always
ports:
- '8000:80'
volumes:
Expand Down
7 changes: 5 additions & 2 deletions docker/init-local.sql
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
-- Use this script to create tables or data seed it if needed.
-- For now, it's not being used but use scripts under the scripts in migrations folder.

-- -- Create user and grant privileges
-- CREATE USER root
-- WITH PASSWORD '1234'
-- ;

-- -- Set permission
-- GRANT ALL PRIVILEGES ON DATABASE cully TO root;
-- GRANT ALL PRIVILEGES ON DATABASE backend TO postgres;

-- -- Create database
-- CREATE DATABASE <db_name>
-- WITH
-- OWNER = root
-- OWNER = postgres
-- ENCODING = 'UTF8'
-- LC_COLLATE = 'en_US.utf8'
-- LC_CTYPE = 'en_US.utf8'
Expand Down

0 comments on commit 4e649ac

Please sign in to comment.