portainerとdocker swarmでなんかいい感じになりそう?
docker swarmでmisskeyを起動するためにこのようなconfigを編み出した
version: "3.8"
services:
web:
image: misskey/misskey:latest
restart: always
links:
- db
- redis
ports:
- "3123:3123"
networks:
- internal_network
- external_network
volumes:
- misskey-web:/misskey
healthcheck:
test: ["CMD-SHELL", "/bin/bash", "/misskey/healthcheck.sh"]
interval: 5s
retries: 20
configs:
- source: misskey.yaml
target: /misskey/.config/default.yml
redis:
restart: always
image: redis:latest
networks:
- internal_network
volumes:
- misskey-redis:/data
db:
restart: always
image: postgres:latest
networks:
- internal_network
environment:
- POSTGRES_PASSWORD=misskey
- POSTGRES_USER=misskey
- POSTGRES_DB=misskey
volumes:
- misskey-db:/var/lib/postgresql/data
networks:
internal_network:
internal: true
external_network:
configs:
misskey.yaml:
external: true