summaryrefslogtreecommitdiff
path: root/compose_example.yml
diff options
context:
space:
mode:
authorぬるきゃっと <nullnyat@nca10.moe>2024-06-28 11:16:12 +0900
committerGitHub <noreply@github.com>2024-06-28 11:16:12 +0900
commita6edd50a5d292e29e6292754a7be95205ac7dbc1 (patch)
tree19c7df16eeb4e28cd05ebda865d05c37d1a4cb14 /compose_example.yml
parentAdd null checking (#14089) (diff)
downloadsharkey-a6edd50a5d292e29e6292754a7be95205ac7dbc1.tar.gz
sharkey-a6edd50a5d292e29e6292754a7be95205ac7dbc1.tar.bz2
sharkey-a6edd50a5d292e29e6292754a7be95205ac7dbc1.zip
chore(docker-compose): 推奨の名前にする (#14096)
* chore(docker-compose): 推奨の名前にする https://github.com/compose-spec/compose-spec/blob/5c18e329d5a15a15e4b636ed093b256b96615e33/spec.md#compose-file * yaml to yml * fix * fix
Diffstat (limited to 'compose_example.yml')
-rw-r--r--compose_example.yml96
1 files changed, 96 insertions, 0 deletions
diff --git a/compose_example.yml b/compose_example.yml
new file mode 100644
index 0000000000..75d0d3a59c
--- /dev/null
+++ b/compose_example.yml
@@ -0,0 +1,96 @@
+services:
+ web:
+ build: .
+ restart: always
+ links:
+ - db
+ - redis
+# - mcaptcha
+# - meilisearch
+ depends_on:
+ db:
+ condition: service_healthy
+ redis:
+ condition: service_healthy
+ ports:
+ - "3000:3000"
+ networks:
+ - internal_network
+ - external_network
+ volumes:
+ - ./files:/misskey/files
+ - ./.config:/misskey/.config:ro
+
+ redis:
+ restart: always
+ image: redis:7-alpine
+ networks:
+ - internal_network
+ volumes:
+ - ./redis:/data
+ healthcheck:
+ test: "redis-cli ping"
+ interval: 5s
+ retries: 20
+
+ db:
+ restart: always
+ image: postgres:15-alpine
+ networks:
+ - internal_network
+ env_file:
+ - .config/docker.env
+ volumes:
+ - ./db:/var/lib/postgresql/data
+ healthcheck:
+ test: "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"
+ interval: 5s
+ retries: 20
+
+# mcaptcha:
+# restart: always
+# image: mcaptcha/mcaptcha:latest
+# networks:
+# internal_network:
+# external_network:
+# aliases:
+# - localhost
+# ports:
+# - 7493:7493
+# env_file:
+# - .config/docker.env
+# environment:
+# PORT: 7493
+# MCAPTCHA_redis_URL: "redis://mcaptcha_redis/"
+# depends_on:
+# db:
+# condition: service_healthy
+# mcaptcha_redis:
+# condition: service_healthy
+#
+# mcaptcha_redis:
+# image: mcaptcha/cache:latest
+# networks:
+# - internal_network
+# healthcheck:
+# test: "redis-cli ping"
+# interval: 5s
+# retries: 20
+
+# meilisearch:
+# restart: always
+# image: getmeili/meilisearch:v1.3.4
+# environment:
+# - MEILI_NO_ANALYTICS=true
+# - MEILI_ENV=production
+# env_file:
+# - .config/meilisearch.env
+# networks:
+# - internal_network
+# volumes:
+# - ./meili_data:/meili_data
+
+networks:
+ internal_network:
+ internal: true
+ external_network: