Skip to content

Commit

Permalink
🔧 config docker (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
karinevieira authored Oct 1, 2023
1 parent 1852869 commit 9bbce80
Show file tree
Hide file tree
Showing 6 changed files with 2,111 additions and 85 deletions.
2 changes: 2 additions & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ruby 3.1.2
nodejs 16.14.2
2 changes: 1 addition & 1 deletion config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ default: &default
encoding: unicode
host: localhost
username: postgres
password: 123
password: postgres
# For details on connection pooling, see Rails configuration guide
# https://guides.rubyonrails.org/configuring.html#database-pooling
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
Expand Down
23 changes: 23 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
services:
# Main application database
db:
image: postgres:14.3-alpine
volumes:
- db-data:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: 123
POSTGRES_USER: postgres
POSTGRES_DB: lens_development

# Redis is an open source (BSD licensed) in-memory data structure store
redis:
image: redis
command: redis-server --requirepass Redis2023!
ports:
- "6379:6379"

volumes:
db-data:
driver: local
Loading

0 comments on commit 9bbce80

Please sign in to comment.