mirror of
https://github.com/MisskeyIO/misskey
synced 2024-12-01 00:08:24 +09:00
54 lines
956 B
YAML
54 lines
956 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
|
|
volumes:
|
|
- ../:/workspace:cached
|
|
|
|
command: sleep infinity
|
|
|
|
networks:
|
|
- internal_network
|
|
- external_network
|
|
|
|
keydb:
|
|
restart: unless-stopped
|
|
image: eqalpha/keydb:latest
|
|
networks:
|
|
- internal_network
|
|
volumes:
|
|
- keydb-data:/data
|
|
healthcheck:
|
|
test: "keydb-cli ping"
|
|
interval: 5s
|
|
retries: 20
|
|
|
|
db:
|
|
restart: unless-stopped
|
|
image: postgres:15-alpine
|
|
networks:
|
|
- internal_network
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_DB: misskey
|
|
volumes:
|
|
- postgres-data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"
|
|
interval: 5s
|
|
retries: 20
|
|
|
|
volumes:
|
|
postgres-data:
|
|
keydb-data:
|
|
|
|
networks:
|
|
internal_network:
|
|
internal: true
|
|
external_network:
|