Skip to content

Instantly share code, notes, and snippets.

@nagashima-w
Created December 24, 2019 07:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nagashima-w/2fa3ae389c44aba307fec7683b94d838 to your computer and use it in GitHub Desktop.
Save nagashima-w/2fa3ae389c44aba307fec7683b94d838 to your computer and use it in GitHub Desktop.
docker-compose.yml
app:
build:
context: .
dockerfile: ./Dockerfile
ports:
- 3000:3000
links:
- mongo:mongo
- elasticsearch:elasticsearch
- hackmd:hackmd
depends_on:
- mongo
- elasticsearch
environment:
- MONGO_URI=mongodb://mongo:27017/growi
- ELASTICSEARCH_URI=http://elasticsearch:9200/growi
- PASSWORD_SEED=my-org
- APP_SITE_URL=https://my.domain.com
- MATHJAX=1
- HACKMD_URI=https://my.domain.com
- HACKMD_URI_FOR_SERVER=http://hackmd:3000
command: "dockerize
-wait tcp://mongo:27017
-wait tcp://elasticsearch:9200
-timeout 60s
npm run server:prod"
restart: unless-stopped
volumes:
- growi_data:/data
mongo:
image: mongo:3.6
restart: unless-stopped
volumes:
- mongo_configdb:/data/configdb
- mongo_db:/data/db
elasticsearch:
build:
context: ./elasticsearch
dockerfile: ./Dockerfile
environment:
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms256m -Xmx256m" # increase amount if you have enough memory
ulimits:
memlock:
soft: -1
hard: -1
restart: unless-stopped
volumes:
- es_data:/usr/share/elasticsearch/data
- ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
volumes:
growi_data:
mongo_configdb:
mongo_db:
es_data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment