-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #953 from ninoseki/v7.0.0
v7.0.0
- Loading branch information
Showing
6 changed files
with
176 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM ruby:3.2.2-alpine3.19 | ||
|
||
ARG MIHARI_VERSION=0.0.0 | ||
|
||
RUN apk --no-cache add git build-base ruby-dev postgresql-dev && \ | ||
gem install pg && \ | ||
gem install mihari -v ${MIHARI_VERSION} && \ | ||
apk del --purge git build-base ruby-dev && \ | ||
rm -rf /usr/local/bundle/cache/* | ||
|
||
ENTRYPOINT ["mihari"] | ||
|
||
CMD ["--help"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
version: "3" | ||
services: | ||
database: | ||
image: postgres:16 | ||
volumes: | ||
- postgresql:/var/lib/postgresql/data | ||
ports: | ||
- ${POSTGRES_PORT:-5432}:5432 | ||
environment: | ||
- POSTGRES_USER=${POSTGRES_USER:-user} | ||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-password} | ||
- POSTGRES_DB=${POSTGRES_DB:-mihari} | ||
restart: always | ||
|
||
redis: | ||
image: "redis/redis-stack:6.2.6-v10" | ||
restart: always | ||
ports: | ||
- ${REDIS_PORT:-6379}:6379 | ||
- ${REDIS_INSIGHT_PORT:-8001}:8001 | ||
volumes: | ||
- redis:/data | ||
|
||
mihari-init: | ||
image: ghcr.io/ninoseki/mihari:latest | ||
environment: | ||
- DATABASE_URL=${DATABASE_URL:-postgresql://${POSTGRES_USER:-user}:${POSTGRES_PASSWORD:-password}@database:${POSTGRES_PORT:-5432}/${POSTGRES_DB:-mihari}} | ||
entrypoint: ["mihari", "db", "migrate"] | ||
depends_on: | ||
- database | ||
|
||
mihari: | ||
image: ghcr.io/ninoseki/mihari:latest | ||
ports: | ||
- ${MIHARI_PORT:-9292}:9292 | ||
environment: | ||
- DATABASE_URL=${DATABASE_URL:-postgresql://${POSTGRES_USER:-user}:${POSTGRES_PASSWORD:-password}@database:${POSTGRES_PORT:-5432}/${POSTGRES_DB:-mihari}} | ||
- REDIS_URL=${REDIS_URL:-redis://redis:${REDIS_PORT:-6379}} | ||
env_file: | ||
- .env | ||
entrypoint: ["mihari", "web", "--host", "0.0.0.0"] | ||
restart: always | ||
depends_on: | ||
- mihari-init | ||
|
||
sidekiq: | ||
image: ghcr.io/ninoseki/mihari:latest | ||
environment: | ||
- DATABASE_URL=${DATABASE_URL:-postgresql://${POSTGRES_USER:-user}:${POSTGRES_PASSWORD:-password}@database:${POSTGRES_PORT:-5432}/${POSTGRES_DB:-mihari}} | ||
- REDIS_URL=${REDIS_URL:-redis://redis:${REDIS_PORT:-6379}} | ||
- USE_SIDEKIQ=true | ||
env_file: | ||
- .env | ||
entrypoint: ["mihari", "sidekiq"] | ||
restart: always | ||
depends_on: | ||
- mihari-init | ||
- redis | ||
|
||
volumes: | ||
postgresql: | ||
redis: |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.