Skip to content

Commit

Permalink
feat: add docker-compose file & update env.example
Browse files Browse the repository at this point in the history
  • Loading branch information
tanshunyuan committed May 4, 2024
1 parent 81e5ea0 commit c04f937
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
DATABASE_URL=""
REDIS_URL=""
DATABASE_URL="postgres://<user>:<password>@<host>:<port>/<database_name>"
REDIS_URL="redis://<host>:<port>"
UPLOAD_DIRECTORY=""
NEXT_PUBLIC_UPLOAD_STATIC_DIRECTORY=""
STRIPE_PUBLISHABLE_KEY=""
Expand Down
26 changes: 26 additions & 0 deletions docker-compose.dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
version: '3.9'

services:
gitroom-postgres:
image: postgres:14.5
container_name: gitroom-postgres
restart: always
environment:
POSTGRES_PASSWORD: gitroom-local-pwd
POSTGRES_USER: gitroom-local
POSTGRES_DB: gitroom-db-local
volumes:
- postgres-volume:/var/lib/postgresql/data
ports:
- 5432:5432
gitroom-redis:
image: redis:7.2
container_name: gitroom-redis
restart: always
ports:
- 6379:6379


volumes:
postgres-volume:
external: false

0 comments on commit c04f937

Please sign in to comment.