version: "3.4" x-server-discovery: &server-discovery NOTESNOOK_SERVER_PORT: 80 NOTESNOOK_SERVER_HOST: notesnook-server IDENTITY_SERVER_PORT: 80 IDENTITY_SERVER_HOST: identity-server SSE_SERVER_PORT: 80 SSE_SERVER_HOST: sse-server SELF_HOSTED: 1 x-env-files: &env-files - .env services: notesnook-db: image: mongo networks: - notesnook command: --replSet rs0 --bind_ip_all # the notesnook sync server requires transactions which only work # with a MongoDB replica set. # This job just runs `rs.initiate()` on our mongodb instance # upgrading it to a replica set. This is only required once but we running # it multiple times is no issue. initiate-rs0: image: mongo networks: - notesnook depends_on: - notesnook-db entrypoint: /bin/sh command: - -c - | mongosh mongodb://notesnook-db:27017 <