mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-25 14:16:43 -06:00
6a8c560d21
* Modify Dockerfile and docker-compose.yml * Fix MongoDB connection error * Use alpine-3.8 instead of alpine-edge as base image * Modify install packages * Modify Mongodb image tag name * Update Docker documents * Add 'Download misskey' paragraph * Make redis optional for Docker
52 lines
1.1 KiB
YAML
52 lines
1.1 KiB
YAML
version: "3"
|
|
|
|
services:
|
|
web:
|
|
build: .
|
|
restart: always
|
|
links:
|
|
- mongo
|
|
# - redis
|
|
# - es
|
|
ports:
|
|
- "127.0.0.1:3000:3000"
|
|
networks:
|
|
- internal_network
|
|
- external_network
|
|
|
|
# redis:
|
|
# restart: always
|
|
# image: redis:4.0-alpine
|
|
# networks:
|
|
# - internal_network
|
|
### Uncomment to enable Redis persistance
|
|
## volumes:
|
|
## - ./redis:/data
|
|
|
|
mongo:
|
|
restart: always
|
|
image: mongo:4.1
|
|
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:
|