Skip to content

Commit

Permalink
fix production config
Browse files Browse the repository at this point in the history
  • Loading branch information
hooopo committed Mar 24, 2021
1 parent 49e5941 commit 65959c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 2 additions & 1 deletion config/database.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
default: &default
adapter: postgresql
encoding: unicode
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 25 } %>

development:
main:
Expand Down Expand Up @@ -32,3 +32,4 @@ production:
<<: *default
url: <%= ENV['HYPER_DATABASE_URL'] %>
migrations_paths: db/hyper_migrate
pool: 25
7 changes: 3 additions & 4 deletions docker-compose.production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,19 @@ services:
ports:
- '4432:5432'
volumes:
- postgres:/data/postgres
- postgres:/var/lib/postgresql/data
environment:
- POSTGRES_DB=hypercable_prod
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password

tsdb:
image: timescale/timescaledb:2.0.1-pg12
#image: timescale/timescaledb:latest-pg12
image: timescale/timescaledb:2.1.0-pg13
restart: always
ports:
- '5532:5432'
volumes:
- postgres:/data/tsdb
- tsdb:/var/lib/postgresql/data
environment:
- POSTGRES_DB=tsdb_prod
- POSTGRES_USER=postgres
Expand Down

0 comments on commit 65959c6

Please sign in to comment.