Skip to content

Commit

Permalink
fix: Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ankurdubey521 committed Jun 25, 2024
1 parent a60d5d7 commit 574b36a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ WORKDIR /reflux
COPY . .
RUN cargo install --path bin/reflux --profile release

FROM debian:bullseye-slim
FROM debian:latest
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y libssl-dev ca-certificates
COPY --from=builder /usr/local/cargo/bin/reflux /app/reflux

1 change: 0 additions & 1 deletion config.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ coingecko:
expiry_sec: 300
infra:
redis_url: redis://localhost:6379
rabbitmq_url: amqp://localhost:5672
mongo_url: mongodb://127.0.0.1:27017
server:
port: 8080
Expand Down
5 changes: 0 additions & 5 deletions crates/config/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -391,9 +391,6 @@ pub struct InfraConfig {
// The URL of the Redis
#[validate(pattern = r"redis://[-a-zA-Z0-9@:%._\+~#=]{1,256}")]
pub redis_url: String,
// The URL of the RabbitMQ
#[validate(pattern = r"amqp://[-a-zA-Z0-9@:%._\+~#=]{1,256}")]
pub rabbitmq_url: String,
// The URL of the MongoDB
#[validate(pattern = r"mongodb://[-a-zA-Z0-9@:%._\+~#=]{1,256}")]
pub mongo_url: String,
Expand Down Expand Up @@ -460,7 +457,6 @@ coingecko:
expiry_sec: 5
infra:
redis_url: 'redis://localhost:6379'
rabbitmq_url: 'amqp://localhost:5672'
mongo_url: 'mongodb://localhost:27017'
server:
port: 8080
Expand Down Expand Up @@ -526,7 +522,6 @@ coingecko:
expiry_sec: 5
infra:
redis_url: 'redis://localhost:6379'
rabbitmq_url: 'amqp://localhost:5672'
mongo_url: 'mongodb://localhost:27017'
server:
port: 8080
Expand Down
4 changes: 1 addition & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ services:
container_name: reflux-solver
entrypoint: [ "/app/reflux", "--solver", "--config", "/app/ctx/config.docker.yaml" ]
ports:
- "8080:8080"
- "8000:8080"
depends_on:
- redis
- mongodb
Expand All @@ -35,8 +35,6 @@ services:
dockerfile: Dockerfile
container_name: reflux-indexer
entrypoint: [ "/app/reflux", "--indexer", "--config", "/app/ctx/config.docker.yaml" ]
ports:
- "8080:8080"
depends_on:
- redis
- mongodb
Expand Down

0 comments on commit 574b36a

Please sign in to comment.