diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..0fb8bc6 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,31 @@ +version: '2' + +services: + crowi: + image: bakudankun/crowi:latest + links: + - mongo:db + - redis:redis + - elasticsearch:es + ports: + - 8080:3000 + volumes: + - "/opt/crowi:/data" + + mongo: + image: mongo + + redis: + image: redis:alpine + + elasticsearch: + image: elasticsearch:2 + # プラグインのKuromojiが必要 + entrypoint: + - bash + - -c + - >- + bin/plugin list | grep -q analysis-kuromoji + || bin/plugin install analysis-kuromoji + && exec /docker-entrypoint.sh $$0 $$@ + command: elasticsearch \ No newline at end of file