[services.misskey]
image = "misskey/misskey"
container_name = "misskey"
restart = "unless-stopped"
depends_on = ["redis"]
ports = ["3082:3000"]
networks = ["misskey", "proxy", "postgres"]
volumes = [
  "/docker/misskey/files:/misskey/files",
  "/docker/misskey/config:/misskey/.config:ro",
]

#[services.elasticsearch]
#image = "docker.elastic.co/elasticsearch/elasticsearch:7.17.8"
#container_name = "misskey-elasticsearch"
#restart = "unless-stopped"
#volumes = ["/docker/misskey/elasticsearch/:/usr/share/elasticsearch/data"]
#networks = ["misskey"]
#environment = [
#  "cluster.name=misskey-es-cluster",
#  "node.name=misskey-node",
#  "discovery.type=single-node",
#  "bootstrap.memory_lock=true",
#  "ES_JAVA_OPTS=-Xms200m -Xmx200m",
#]
#[services.elasticsearch.ulimits.memlock]
#soft = -1
#hard = -1

[services.redis]
image = "redis"
container_name = "redis-misskey"
restart = "unless-stopped"
networks = ["misskey"]
volumes = ["/docker/misskey/redis:/data"]

[networks.misskey]
internal = true

[networks.proxy]
external = true

[networks.postgres]
external = true
