Skip to content

Commit

Permalink
Merge branch 'master' into schema-3-dep
Browse files Browse the repository at this point in the history
  • Loading branch information
svogt0511 committed Jan 7, 2025
2 parents a49a538 + 7c251e5 commit 7244544
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 5 deletions.
6 changes: 1 addition & 5 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,7 @@
config.middleware.use Flipper::Middleware::Memoizer
config.flipper.memoize = false

# config.after_initialize do
# Bullet.enable = true
# Bullet.rails_logger = true
# Bullet.counter_cache_enable = false
# end
config.hosts << "lupo_web"
end

BetterErrors::Middleware.allow_ip! ENV["TRUSTED_IP"]
77 changes: 77 additions & 0 deletions docker-compose.localstack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
version: "3"

services:
web:
container_name: lupo_web
platform: linux/amd64
env_file: .env
environment:
- ELASTIC_PASSWORD=AnUnsecurePassword123
image: ghcr.io/datacite/lupo:main
ports:
- "8065:80"
- "2265:22"
volumes:
- ./app:/home/app/webapp/app
- ./config:/home/app/webapp/config
- ./db:/home/app/webapp/db
- ./lib:/home/app/webapp/lib
- ./spec:/home/app/webapp/spec
- ./storage:/home/app/webapp/storage
networks:
- localstack_network
depends_on:
- elasticsearch

memcached:
container_name: lupo_memcached
image: memcached:1.6.32
ports:
- "11211:11211"
networks:
- localstack_network

mysql:
container_name: lupo_mysql
command: --max_allowed_packet=50000000
environment:
MYSQL_DATABASE: datacite
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
image: mysql:8.0
ports:
- "3309:3306"
networks:
- localstack_network

elasticsearch:
container_name: lupo_opensearch
image: opensearchproject/opensearch:2
ports:
- "9201:9200"
- "9301:9300"
environment:
discovery.type: single-node
OPENSEARCH_JAVA_OPTS: -Xms512m -Xmx512m
OPENSEARCH_INITIAL_ADMIN_PASSWORD: AnUnsecurePassword123
DISABLE_SECURITY_PLUGIN: true
http.cors.enabled: true
bootstrap.memory_lock: true
http.cors.allow-origin: "*"
compatibility.override_main_response_version: true
logger.org.opensearch.discovery: "ERROR"
volumes:
- data:/usr/share/opensearch/data
networks:
- localstack_network
healthcheck:
test: curl -f http://admin:AnUnsecurePassword123@elasticsearch:9200
interval: 10s
timeout: 1s

volumes:
data:
driver: local

networks:
localstack_network:
external: true

0 comments on commit 7244544

Please sign in to comment.