Skip to content

Commit

Permalink
feat: a slightly better local docker compose setup (this time for sure)
Browse files Browse the repository at this point in the history
  • Loading branch information
112batuhan committed Nov 24, 2024
1 parent 62d31d6 commit d163473
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
27 changes: 14 additions & 13 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,15 @@ services:
volumes:
- surrealdb-data:/data


surrealdb:
image: surrealdb/surrealdb:latest
env_file:
- .env
entrypoint:
- /surreal
- start
- --user
- $SURREAL_USER
- backend
- --pass
- $SURREAL_PASS
- password
- --log
- debug
- rocksdb://data
Expand All @@ -42,21 +39,25 @@ services:
- .env
depends_on:
- surrealdb
deploy:
restart_policy:
condition: on-failure
max_attempts: 5
ports:
- "${PORT}:${PORT}"
networks:
- mapper-influences-rs

environment:
# Docker internal port
SURREAL_URL: ws://surrealdb:8000
SURREAL_USER: backend
SURREAL_PASS: password
SURREAL_URL: ws://surrealdb:8000 # Docker internal port
REDIRECT_URI: http://localhost:8000/oauth/osu-redirect
POST_LOGIN_REDIRECT_URI: http://localhost:3000/dashboard
JWT_SECRET_KEY: localkey
ADMIN_PASSWORD: localpass
PORT: 8000
CLIENT_ID: $CLIENT_ID
CLIENT_SECRET: $CLIENT_SECRET
REDIRECT_URI: $REDIRECT_URI
POST_LOGIN_REDIRECT_URI: $POST_LOGIN_REDIRECT_URI
JWT_SECRET_KEY: $JWT_SECRET_KEY
PORT: $PORT
ADMIN_PASSWORD: $ADMIN_PASSWORD

networks:
mapper-influences-rs:
Expand Down
1 change: 1 addition & 0 deletions src/retry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use std::{error::Error, time::Duration};

use futures::Future;

// TODO: use asycn_traits now that you imported it anyway?
pub trait Retryable {
type Value: Send;
type Err: Error + Send;
Expand Down

0 comments on commit d163473

Please sign in to comment.