version: "3.8" services: frontend: build: . ports: - "8080:80" environment: # Connect to the local SpacetimeDB instance - SPACETIMEDB_URI=ws://localhost:3000 - SPACETIMEDB_DB_NAME=my-chat-app depends_on: - module-publisher spacetimedb: image: clockworklabs/spacetime:latest ports: - "3000:3000" entrypoint: spacetime start hostname: spacetimedb volumes: - spacetimedb-data:/root/.spacetime # A temporary service to publish the module to the local database # on startup, ensuring the schema is always up-to-date. module-publisher: build: context: ./spacetimedb dockerfile: Dockerfile.publish depends_on: - spacetimedb environment: - SPACETIMEDB_URI=http://spacetimedb:3000 - SPACETIMEDB_DB_NAME=my-chat-app volumes: spacetimedb-data: