Skip to content

Commit

Permalink
update docker-compose, readme, .env
Browse files Browse the repository at this point in the history
  • Loading branch information
kmurf1999 committed Dec 20, 2020
1 parent cbfaa72 commit 7179435
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
POSTGRES_USER=mydb
POSTGRES_PASSWORD=changeme
POSTGRES_DB=mydb
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DB=postgres
DATABASE_URL="postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@127.0.0.1:5432/${POSTGRES_DB}"
REDIS_URL="redis://127.0.0.1:6379/"
JWT_SECRET="ITS A SECRET"
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ data/
.env.development.local
.env.test.local
.env.production.local
# include sample
!.env.sample

npm-debug.log*
yarn-debug.log*
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ Holdem Solver is an free to use, open source web-application similar to FlopZill

`git clone https://github.com/kmurf1999/HoldemSolver`

2. Start the development server
2. Setup environment variables

`mv .env.sample .env.dev`

3. Start the development server

`docker-compose -f docker.compose.dev.yml up`

Expand Down
24 changes: 14 additions & 10 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ services:
dockerfile: Dockerfile.dev
volumes:
- ./api:/api
environment:
RUST_LOG: info
DATABASE_URL: postgres://mydb:changeme@db:5432/mydb
REDIS_URL: redis://cache:6379/
JWT_SECRET: ITS A SECRET
ARGON_SECRET: ITS ANOTHER SECRET
env_file:
- ./.env.dev
# environment:
# RUST_LOG: info
# DATABASE_URL: postgres://mydb:changeme@db:5432/mydb
# REDIS_URL: redis://cache:6379/
# JWT_SECRET: ITS A SECRET
# ARGON_SECRET: ITS ANOTHER SECRET
ports:
- 3535:3535
depends_on:
Expand All @@ -36,10 +38,12 @@ services:
- 5432:5432
volumes:
- ./data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
env_file:
- ./.env.dev
# environment:
# - POSTGRES_DB=postgres
# - POSTGRES_USER=postgres
# - POSTGRES_PASSWORD=postgres
restart: always

cache:
Expand Down

0 comments on commit 7179435

Please sign in to comment.