Skip to content

Commit

Permalink
chore: update docker
Browse files Browse the repository at this point in the history
  • Loading branch information
devhoangkien committed Jan 9, 2024
1 parent 687af05 commit de7c5f1
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion apps/libraries/common
Submodule common updated 2 files
+6 −2 package.json
+0 −1 utils/IntFilter.ts
2 changes: 1 addition & 1 deletion apps/servers/bune-auth
2 changes: 1 addition & 1 deletion apps/servers/bune-blog
7 changes: 4 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ services:
networks:
- backend
- auth-domain
command: sh -c "bun run db:init && bun dev"
bune-blog:
container_name: bune-blog
image: devhoangkien/bune-blog:latest
Expand All @@ -22,9 +23,9 @@ services:
- "9698:9698" # Cấu hình cổng bạn muốn sử dụng
env_file:
- env/blog.env # Sử dụng đường dẫn tương đối đến tệp .env
environment:
- APP_PORT=9698
- DATABASE_URL=postgresql://admin:master123@localhost:5432/bune-blog?schema=public
# environment:
# - APP_PORT=9698
# - DATABASE_URL=postgresql://admin:master123@postgres:5432/bune-blog?schema=public
volumes:
- blog-data:/app # Liên kết thư mục nguồn với container
depends_on:
Expand Down
2 changes: 1 addition & 1 deletion env/auth.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
AUTH_PORT=9697
DATABASE_URL="postgresql://admin:master123@postgres:5432/mydb?schema=public"
DATABASE_URL="postgresql://admin:master123@postgres:5432/bune-auth?schema=public"

REDIS_HOST=redis
REDIS_PORT=6379
Expand Down

0 comments on commit de7c5f1

Please sign in to comment.