Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use docker to run pgsync? #218

Open
tankxxl opened this issue Apr 16, 2024 · 2 comments
Open

How to use docker to run pgsync? #218

tankxxl opened this issue Apr 16, 2024 · 2 comments

Comments

@tankxxl
Copy link

tankxxl commented Apr 16, 2024

image How to pass yml file to docker command?
@zhangcheng
Copy link

See if #198 (comment) helps

@magixus
Copy link

magixus commented Jan 3, 2025

someone can use docker compose with the following docker-compose.yml

services:
  pgsync:
    image: ankane/pgsync
    container_name: pgsync
    volumes:
      - ./pgsync.yml:/opt/.pgsync.yml
    working_dir: /opt
    command:
      "--schemas public --no-sequences --preserve"

and ./pgsync.yml

from: <connection string source>
to: <connection string target>
to_safe: true # just in case

you can then do:

docker compose run pgsync --debug # or --list or any other additional commands 

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

No branches or pull requests

3 participants