Skip to content

Commit

Permalink
Update docker compose and default .env.dev.example (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
MicroFish91 authored Oct 10, 2024
1 parent 0fb5353 commit 1682083
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ tc-redact:
@go run cmd/tc_redact/main.go

config-up:
@docker-compose up
@docker-compose up -d

config-down:
@docker-compose down
Expand Down
3 changes: 1 addition & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ services:
POSTGRES_USER: app
POSTGRES_PASSWORD: app
POSTGRES_DB: db

ports:
- "5432:5432"
- "5431:5432"
volumes:
- db:/var/lib/posgressql

Expand Down
12 changes: 6 additions & 6 deletions env/.env.dev.example
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
APP_ENV="development"
PORT="3000"
PORT=":3000"
JWT_SECRET="not-so-secret-jwt-secret"
REQUIRE_VERIFICATION="true"
REQUIRE_VERIFICATION="false"
UNAUTHORIZED_REQUEST_LIMIT="99999"
SHORT_REQUEST_LIMIT="99999"
LONG_REQUEST_LIMIT="99999"
LOG_LEVEL="0"
DB_HOST="localhost"
DB_PORT="5432"
DB_NAME="postgres"
DB_USER=""
DB_PASSWORD=""
DB_PORT="5431" # 5432 is the default if not running docker compose
DB_NAME="db"
DB_USER="app"
DB_PASSWORD="app"
DB_SSL_MODE="disable"
DB_MAX_CONNECTIONS="4"
DB_MIN_CONNECTIONS="0"

0 comments on commit 1682083

Please sign in to comment.