stadtratmonitor/docker-compose.yml
vrifox dd8c3d9211
use default parameters
Reduces the initial setup barrier
2023-05-02 10:31:13 +02:00

38 lines
1.1 KiB
YAML

version: "3.7"
services:
web:
user: srm
build: .
volumes:
- .:/app
ports:
- "3000:3000"
links:
- elasticsearch
environment:
- ELASTICSEARCH_URL=${ELASTICSEARCH_URL:-http://elasticsearch:9200}
- APPLICATION_HOST=${APPLICATION_HOST:-localhost}
- SHARED_IMPORT_SECRET=$SHARED_IMPORT_SECRET
command: sh -c "cd /home/srm/app && export PATH=/home/srm/.rbenv/bin:$PATH && eval \"$(~/.rbenv/bin/rbenv init -)\" && bundle install && bundle exec puma -C config/puma.rb"
elasticsearch:
user: elasticsearch
build: ./docker/elasticsearch
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ports:
- "9215:9200"
volumes:
- ${ESDATA:-esdata}:/usr/share/elasticsearch/data //read, write and execute
- ./docker/elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
command: sh -c "/usr/share/elasticsearch/bin/elasticsearch"
elastichq:
image: elastichq/elasticsearch-hq
ports:
- "5000:5000"
links:
- elasticsearch
volumes:
esdata: