2018-10-08 23:09:50 -07:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
web:
|
|
|
|
build: .
|
|
|
|
restart: always
|
|
|
|
links:
|
2019-04-07 05:50:36 -07:00
|
|
|
- db
|
2019-04-13 20:05:12 -07:00
|
|
|
- redis
|
2018-10-08 23:09:50 -07:00
|
|
|
# - es
|
2023-01-14 13:24:56 -08:00
|
|
|
depends_on:
|
|
|
|
db:
|
|
|
|
condition: service_healthy
|
|
|
|
redis:
|
|
|
|
condition: service_healthy
|
2018-10-08 23:09:50 -07:00
|
|
|
ports:
|
2022-05-15 00:39:23 -07:00
|
|
|
- "3000:3000"
|
2018-10-08 23:09:50 -07:00
|
|
|
networks:
|
|
|
|
- internal_network
|
|
|
|
- external_network
|
2020-07-30 05:13:38 -07:00
|
|
|
volumes:
|
|
|
|
- ./files:/misskey/files
|
2021-09-13 04:07:39 -07:00
|
|
|
- ./.config:/misskey/.config:ro
|
2018-10-08 23:09:50 -07:00
|
|
|
|
2019-04-13 20:05:12 -07:00
|
|
|
redis:
|
|
|
|
restart: always
|
|
|
|
image: redis:4.0-alpine
|
|
|
|
networks:
|
|
|
|
- internal_network
|
|
|
|
volumes:
|
|
|
|
- ./redis:/data
|
2023-01-14 13:24:56 -08:00
|
|
|
healthcheck:
|
|
|
|
test: "redis-cli ping"
|
|
|
|
interval: 5s
|
|
|
|
retries: 20
|
2018-10-08 23:09:50 -07:00
|
|
|
|
2019-04-07 05:50:36 -07:00
|
|
|
db:
|
2018-10-08 23:09:50 -07:00
|
|
|
restart: always
|
2020-04-25 19:13:02 -07:00
|
|
|
image: postgres:12.2-alpine
|
2018-10-08 23:09:50 -07:00
|
|
|
networks:
|
|
|
|
- internal_network
|
2019-04-07 05:50:36 -07:00
|
|
|
env_file:
|
|
|
|
- .config/docker.env
|
2018-10-08 23:09:50 -07:00
|
|
|
volumes:
|
2019-04-07 05:50:36 -07:00
|
|
|
- ./db:/var/lib/postgresql/data
|
2023-01-14 13:24:56 -08:00
|
|
|
healthcheck:
|
2023-01-15 03:54:20 -08:00
|
|
|
test: "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"
|
2023-01-14 13:24:56 -08:00
|
|
|
interval: 5s
|
|
|
|
retries: 20
|
2018-10-08 23:09:50 -07:00
|
|
|
|
|
|
|
# es:
|
|
|
|
# restart: always
|
|
|
|
# image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.4.2
|
|
|
|
# environment:
|
|
|
|
# - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
|
2022-01-25 06:16:09 -08:00
|
|
|
# - "TAKE_FILE_OWNERSHIP=111"
|
2018-10-08 23:09:50 -07:00
|
|
|
# networks:
|
|
|
|
# - internal_network
|
2019-04-07 05:50:36 -07:00
|
|
|
# volumes:
|
|
|
|
# - ./elasticsearch:/usr/share/elasticsearch/data
|
2018-10-08 23:09:50 -07:00
|
|
|
|
|
|
|
networks:
|
|
|
|
internal_network:
|
|
|
|
internal: true
|
|
|
|
external_network:
|