mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-29 00:13:09 +02:00
3c7e1ff92e
* Dev Containerの設定を追加 * テンプレート生成時に含まれていたコメントを削除 * 起動スクリプトを分割 JSONの中にベタ書きすると長くなるので * 改行 * Dev Containerの使用方法を追記
52 lines
922 B
YAML
52 lines
922 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
|
|
volumes:
|
|
- ../..:/workspaces:cached
|
|
|
|
command: sleep infinity
|
|
|
|
networks:
|
|
- internal_network
|
|
- external_network
|
|
|
|
redis:
|
|
restart: always
|
|
image: redis:7-alpine
|
|
networks:
|
|
- internal_network
|
|
volumes:
|
|
- ../redis:/data
|
|
healthcheck:
|
|
test: "redis-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:
|
|
- ../db:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"
|
|
interval: 5s
|
|
retries: 20
|
|
|
|
volumes:
|
|
postgres-data:
|
|
|
|
networks:
|
|
internal_network:
|
|
internal: true
|
|
external_network:
|