freifunksearch

Moved to https://github.com/FreifunkSearchProjekt
git clone git://archive.git.mtrnord.blog/MTRNord/freifunksearch.git
Log | Files | Refs | README | LICENSE

docker-compose.yml (1762B)


      1 version: '2'
      2 services:
      3   nginx:
      4     container_name: ff-sl_web
      5     image: nginx
      6     volumes:
      7       - ./app:/var/www
      8       - ./nginx/default:/etc/nginx/conf.d/default
      9     ports:
     10       - "80:80"
     11     environment:
     12      - NGINX_HOST=localhost
     13      - NGINX_PORT=80
     14     command: /bin/bash -c "envsubst < /etc/nginx/conf.d/default > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
     15   ff-sl1:
     16     image: docker.elastic.co/elasticsearch/elasticsearch:5.1.1
     17     container_name: ff-sl1
     18     environment:
     19       - cluster.name=ff-sl
     20       - bootstrap.memory_lock=true
     21       - http.cors.enabled=true
     22       - http.cors.allow-origin=/.*/
     23       - http.cors.allow-credentials=true
     24       - xpack.security.enabled=false
     25       - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
     26     ulimits:
     27       memlock:
     28         soft: -1
     29         hard: -1
     30       nofile:
     31         soft: 65536
     32         hard: 65536
     33     mem_limit: 1g
     34     cap_add:
     35       - IPC_LOCK
     36     volumes:
     37       - ./data/1:/usr/share/elasticsearch/data
     38     ports:
     39       - 9200:9200
     40     networks:
     41       - esnet
     42   ff-sl2:
     43     container_name: ff-sl2
     44     image: docker.elastic.co/elasticsearch/elasticsearch:5.1.1
     45     environment:
     46       - xpack.security.enabled=false
     47       - http.cors.enabled=true
     48       - http.cors.allow-origin=/.*/                            
     49       - http.cors.allow-credentials=true
     50       - cluster.name=ff-sl
     51       - bootstrap.memory_lock=true
     52       - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
     53       - "discovery.zen.ping.unicast.hosts=ff-sl1"
     54     ulimits:
     55       memlock:
     56         soft: -1
     57         hard: -1
     58       nofile:
     59         soft: 65536
     60         hard: 65536
     61     mem_limit: 1g
     62     cap_add:
     63       - IPC_LOCK
     64     volumes:
     65       - ./data/2:/usr/share/elasticsearch/data
     66     networks:
     67       - esnet
     68 
     69 networks:
     70   esnet:
     71     driver: bridge