2023-02-12 00:07:56 +00:00
|
|
|
version: '3.8'
|
|
|
|
|
|
|
|
services:
|
|
|
|
app:
|
2023-07-07 22:08:16 +00:00
|
|
|
build:
|
2023-02-12 00:07:56 +00:00
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
|
|
|
|
volumes:
|
2023-02-14 04:17:34 +00:00
|
|
|
- ../:/workspace:cached
|
2023-02-12 00:07:56 +00:00
|
|
|
|
|
|
|
command: sleep infinity
|
|
|
|
|
|
|
|
networks:
|
|
|
|
- internal_network
|
|
|
|
- external_network
|
|
|
|
|
2023-10-29 15:27:20 +00:00
|
|
|
keydb:
|
2023-03-05 03:48:27 +00:00
|
|
|
restart: unless-stopped
|
2023-10-29 15:27:20 +00:00
|
|
|
image: eqalpha/keydb:latest
|
2023-02-12 00:07:56 +00:00
|
|
|
networks:
|
|
|
|
- internal_network
|
|
|
|
volumes:
|
2023-10-29 15:27:20 +00:00
|
|
|
- keydb-data:/data
|
2023-02-12 00:07:56 +00:00
|
|
|
healthcheck:
|
2023-10-29 15:27:20 +00:00
|
|
|
test: "keydb-cli ping"
|
2023-02-12 00:07:56 +00:00
|
|
|
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:
|
2023-02-14 04:17:34 +00:00
|
|
|
- postgres-data:/var/lib/postgresql/data
|
2023-02-12 00:07:56 +00:00
|
|
|
healthcheck:
|
|
|
|
test: "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"
|
|
|
|
interval: 5s
|
|
|
|
retries: 20
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
postgres-data:
|
2023-10-29 15:27:20 +00:00
|
|
|
keydb-data:
|
2023-02-12 00:07:56 +00:00
|
|
|
|
|
|
|
networks:
|
|
|
|
internal_network:
|
|
|
|
internal: true
|
|
|
|
external_network:
|