services: api: build: api ports: - "3000:3000" depends_on: - db db: build: db expose: - "6379" volumes: - .data:/data