Skip to content

Commit

Permalink
feat: remove redis for now
Browse files Browse the repository at this point in the history
  • Loading branch information
angristan committed Jul 5, 2021
1 parent 1e957be commit 92f686e
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 13,404 deletions.
5 changes: 0 additions & 5 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,4 @@ JWT_SECRET=secret

DATABASE_URL=postgresql://admin:admin@localhost:5432/codebench?schema=public
#DB_CERT=
REDIS_HOST=127.0.0.1
REDIS_PORT=6378
#REDIS_PASS=
#REDIS_PORT=
REDIS_TLS=false
RABBITMQ_URL=amqp://admin:admin@localhost:5672/
4 changes: 0 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,3 @@ services:
- codebench_db:/data
ports:
- 5432:5432
redis:
image: 'redis:6.2.3'
ports:
- '127.0.0.1:6378:6379'
40 changes: 40 additions & 0 deletions fly.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# fly.toml file generated for codebench-api on 2021-07-05T15:24:08Z

app = "codebench-api"

kill_signal = "SIGINT"
kill_timeout = 5

[build]
image = "rg.fr-par.scw.cloud/codebench/api:v1.8.1"

[env]

[experimental]
allowed_public_ports = []
auto_rollback = true

[[services]]
http_checks = []
internal_port = 3000
protocol = "tcp"
script_checks = []

[services.concurrency]
hard_limit = 25
soft_limit = 20
type = "connections"

[[services.ports]]
handlers = ["http"]
port = 80

[[services.ports]]
handlers = ["tls", "http"]
port = 443

[[services.tcp_checks]]
grace_period = "1s"
interval = "15s"
restart_limit = 6
timeout = "2s"
Loading

0 comments on commit 92f686e

Please sign in to comment.