2018-10-09 09:09:50 +03:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
web:
|
|
|
|
build: .
|
|
|
|
restart: always
|
|
|
|
links:
|
2019-04-07 15:50:36 +03:00
|
|
|
- db
|
2019-04-14 06:05:12 +03:00
|
|
|
- redis
|
2023-05-05 02:52:14 +03:00
|
|
|
# - meilisearch
|
2023-01-14 23:24:56 +02:00
|
|
|
depends_on:
|
|
|
|
db:
|
|
|
|
condition: service_healthy
|
|
|
|
redis:
|
|
|
|
condition: service_healthy
|
2018-10-09 09:09:50 +03:00
|
|
|
ports:
|
2022-05-15 10:39:23 +03:00
|
|
|
- "3000:3000"
|
2018-10-09 09:09:50 +03:00
|
|
|
networks:
|
|
|
|
- internal_network
|
|
|
|
- external_network
|
2020-07-30 15:13:38 +03:00
|
|
|
volumes:
|
|
|
|
- ./files:/misskey/files
|
2021-09-13 14:07:39 +03:00
|
|
|
- ./.config:/misskey/.config:ro
|
2018-10-09 09:09:50 +03:00
|
|
|
|
2019-04-14 06:05:12 +03:00
|
|
|
redis:
|
|
|
|
restart: always
|
2023-01-18 09:18:23 +02:00
|
|
|
image: redis:7-alpine
|
2019-04-14 06:05:12 +03:00
|
|
|
networks:
|
|
|
|
- internal_network
|
|
|
|
volumes:
|
|
|
|
- ./redis:/data
|
2023-01-14 23:24:56 +02:00
|
|
|
healthcheck:
|
|
|
|
test: "redis-cli ping"
|
|
|
|
interval: 5s
|
|
|
|
retries: 20
|
2018-10-09 09:09:50 +03:00
|
|
|
|
2019-04-07 15:50:36 +03:00
|
|
|
db:
|
2018-10-09 09:09:50 +03:00
|
|
|
restart: always
|
2023-01-17 23:13:44 +02:00
|
|
|
image: postgres:15-alpine
|
2018-10-09 09:09:50 +03:00
|
|
|
networks:
|
|
|
|
- internal_network
|
2019-04-07 15:50:36 +03:00
|
|
|
env_file:
|
|
|
|
- .config/docker.env
|
2018-10-09 09:09:50 +03:00
|
|
|
volumes:
|
2019-04-07 15:50:36 +03:00
|
|
|
- ./db:/var/lib/postgresql/data
|
2023-01-14 23:24:56 +02:00
|
|
|
healthcheck:
|
2023-01-15 13:54:20 +02:00
|
|
|
test: "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"
|
2023-01-14 23:24:56 +02:00
|
|
|
interval: 5s
|
|
|
|
retries: 20
|
2018-10-09 09:09:50 +03:00
|
|
|
|
2023-05-05 02:52:14 +03:00
|
|
|
# meilisearch:
|
2018-10-09 09:09:50 +03:00
|
|
|
# restart: always
|
2023-05-05 02:52:14 +03:00
|
|
|
# image: getmeili/meilisearch:v1.1.1
|
2018-10-09 09:09:50 +03:00
|
|
|
# environment:
|
2023-05-05 02:52:14 +03:00
|
|
|
# - MEILI_NO_ANALYTICS=true
|
|
|
|
# - MEILI_ENV=production
|
|
|
|
# env_file:
|
|
|
|
# - .config/meilisearch.env
|
2018-10-09 09:09:50 +03:00
|
|
|
# networks:
|
|
|
|
# - internal_network
|
2019-04-07 15:50:36 +03:00
|
|
|
# volumes:
|
2023-05-05 02:52:14 +03:00
|
|
|
# - ./meili_data:/meili_data
|
2018-10-09 09:09:50 +03:00
|
|
|
|
|
|
|
networks:
|
|
|
|
internal_network:
|
|
|
|
internal: true
|
|
|
|
external_network:
|