Skip to content

fix: missing docker compose template files#20

Merged
stevensJourney merged 1 commit intomainfrom
fix-docker-dist
Mar 5, 2026
Merged

fix: missing docker compose template files#20
stevensJourney merged 1 commit intomainfrom
fix-docker-dist

Conversation

@stevensJourney
Copy link
Collaborator

@stevensJourney stevensJourney commented Mar 5, 2026

closes #19

Users have reported the following error when running powersync docker configure

    Error: ENOENT: no such file or directory, open '/home/lcmch/.npm/_npx/0be151bc818c02b
    f/node_modules/@powersync/cli-plugin-docker/dist/templates/main-compose.yaml'
    Code: ENOENT

The docker plugin package has a script which should copy template files to the dist folder.

It seems like the @powersync/cli-plugin-docker package's build script was somehow deleted - perhaps due to a merge conflict resolution.

This re-adds the script which resolves the issue. Tested by doing a clean build then using docker commands.

A dev release was also tested.

❯ npx powersync@0.0.0-dev-20260305082615 docker configure
✔ Select a database module for a replication source. Use external to configure an existing database. postgres
✔ Select a storage module for PowerSync bucket metadata. Use external to configure an existing database. postgres
Note: the Postgres database template is incomplete.
Update docker/modules/database-postgres/init-scripts/ with your schema (tables and publication) before deploying.
Init scripts run only when the DB volume is empty. If you see "Publication powersync does not exist", run: powersync docker stop --remove --remove-volumes then powersync docker reset again.

Configured /Users/stevenontong/Documents/platform_code/powersync/new-cli/playground/powersync/docker
  - docker-compose.yaml (includes modules, adds PowerSync service)
  - .env
  - Merged config into service.yaml
  - cli.yaml (plugins.docker.project_name: powersync_playground)

Next: run "powersync docker start" to start the stack.

Side addition: this adds a LICENSE file to the repo root.

Copy link

@Chriztiaan Chriztiaan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solid.

@stevensJourney stevensJourney merged commit cee6fc3 into main Mar 5, 2026
4 checks passed
@stevensJourney stevensJourney deleted the fix-docker-dist branch March 5, 2026 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing main-compose.yaml template file

2 participants