2023-02-12 09:07:56 +09:00
|
|
|
version: '3.8'
|
|
|
|
|
|
|
|
services:
|
|
|
|
app:
|
2023-07-08 07:08:16 +09:00
|
|
|
build:
|
2023-02-12 09:07:56 +09:00
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
|
|
|
|
volumes:
|
2023-02-14 13:17:34 +09:00
|
|
|
- ../:/workspace:cached
|
2023-02-12 09:07:56 +09:00
|
|
|
|
|
|
|
command: sleep infinity
|
|
|
|
|
|
|
|
networks:
|
|
|
|
- internal_network
|
|
|
|
- external_network
|
|
|
|
|
2024-09-17 03:46:58 +09:00
|
|
|
dragonfly:
|
2023-03-05 12:48:27 +09:00
|
|
|
restart: unless-stopped
|
2024-09-17 03:46:58 +09:00
|
|
|
image: docker.dragonflydb.io/dragonflydb/dragonfly
|
|
|
|
ulimits:
|
|
|
|
memlock: -1
|
|
|
|
environment:
|
|
|
|
DFLY_snapshot_cron: '* * * * *'
|
|
|
|
DFLY_version_check: false
|
|
|
|
DFLY_tcp_backlog: 2048
|
|
|
|
DFLY_default_lua_flags: allow-undeclared-keys
|
|
|
|
DFLY_pipeline_squash: 0
|
|
|
|
DFLY_multi_exec_squash: false
|
|
|
|
DFLY_conn_io_threads: 4
|
|
|
|
DFLY_epoll_file_threads: 4
|
|
|
|
DFLY_proactor_threads: 4
|
2023-02-12 09:07:56 +09:00
|
|
|
networks:
|
|
|
|
- internal_network
|
|
|
|
volumes:
|
2024-09-17 03:46:58 +09:00
|
|
|
- dragonfly-data:/data
|
2023-02-12 09:07:56 +09:00
|
|
|
|
|
|
|
db:
|
|
|
|
restart: unless-stopped
|
|
|
|
image: postgres:15-alpine
|
|
|
|
networks:
|
|
|
|
- internal_network
|
|
|
|
environment:
|
|
|
|
POSTGRES_USER: postgres
|
|
|
|
POSTGRES_PASSWORD: postgres
|
|
|
|
POSTGRES_DB: misskey
|
|
|
|
volumes:
|
2023-02-14 13:17:34 +09:00
|
|
|
- postgres-data:/var/lib/postgresql/data
|
2023-02-12 09:07:56 +09:00
|
|
|
healthcheck:
|
|
|
|
test: "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"
|
|
|
|
interval: 5s
|
|
|
|
retries: 20
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
postgres-data:
|
2024-09-17 03:46:58 +09:00
|
|
|
dragonfly-data:
|
2023-02-12 09:07:56 +09:00
|
|
|
|
|
|
|
networks:
|
|
|
|
internal_network:
|
|
|
|
internal: true
|
|
|
|
external_network:
|