Improve project usage (#6)
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
1. Ignore unnecessary files, such as `pgcli` log/history, and extra `docker-compose` definitions. 2. Add `Makefile` with common tasks. 3. Add git pre-commit hook to ensure project is always properly formatted. 4. Add [`btree_gist`][0] extension to `postgres`. Reviewed-on: #6 [0]: https://www.postgresql.org/docs/14/btree-gist.html
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
---
|
||||
version: '3.7'
|
||||
|
||||
services:
|
||||
db:
|
||||
image: 'postgres:14.2-alpine'
|
||||
hostname: &db_host db
|
||||
init: true
|
||||
environment:
|
||||
POSTGRES_USER: &db_user postgres
|
||||
POSTGRES_PASSWORD: &db_pass postgres
|
||||
@@ -45,6 +47,7 @@ services:
|
||||
restart: unless-stopped
|
||||
entrypoint: sleep
|
||||
command: 3650d
|
||||
|
||||
volumes:
|
||||
db_data: {}
|
||||
app_build: {}
|
||||
|
Reference in New Issue
Block a user