2018-10-09 15:09:50 +09:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
web:
|
|
|
|
build: .
|
|
|
|
restart: always
|
|
|
|
links:
|
|
|
|
- mongo
|
2018-10-24 14:36:42 +09:00
|
|
|
# - redis
|
2018-10-09 15:09:50 +09:00
|
|
|
# - es
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:3000:3000"
|
|
|
|
networks:
|
|
|
|
- internal_network
|
|
|
|
- external_network
|
|
|
|
|
2018-10-24 14:36:42 +09:00
|
|
|
# redis:
|
|
|
|
# restart: always
|
|
|
|
# image: redis:4.0-alpine
|
|
|
|
# networks:
|
|
|
|
# - internal_network
|
2018-10-09 15:09:50 +09:00
|
|
|
### Uncomment to enable Redis persistance
|
2018-10-24 14:36:42 +09:00
|
|
|
## volumes:
|
|
|
|
## - ./redis:/data
|
2018-10-09 15:09:50 +09:00
|
|
|
|
|
|
|
mongo:
|
|
|
|
restart: always
|
2018-10-24 14:36:42 +09:00
|
|
|
image: mongo:4.1
|
2018-10-09 15:09:50 +09:00
|
|
|
networks:
|
|
|
|
- internal_network
|
|
|
|
environment:
|
|
|
|
MONGO_INITDB_DATABASE: "misskey"
|
|
|
|
volumes:
|
|
|
|
- ./.config/mongo_initdb.js:/docker-entrypoint-initdb.d/mongo_initdb.js:ro
|
|
|
|
### Uncomment to enable MongoDB persistance
|
|
|
|
# - ./mongo:/data
|
|
|
|
|
|
|
|
# es:
|
|
|
|
# restart: always
|
|
|
|
# image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.4.2
|
|
|
|
# environment:
|
|
|
|
# - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
|
|
|
|
# networks:
|
|
|
|
# - internal_network
|
|
|
|
#### Uncomment to enable ES persistence
|
|
|
|
## volumes:
|
|
|
|
## - ./elasticsearch:/usr/share/elasticsearch/data
|
|
|
|
|
|
|
|
networks:
|
|
|
|
internal_network:
|
|
|
|
internal: true
|
|
|
|
external_network:
|