Skip to main content

Operations

Common Docker Compose service operations for Sync-in.

info

These commands should be executed from the root directory of sync-in-docker, within the Sync-in Docker Compose environment.

Start services

Launches the services defined in docker-compose.yml in the background.

docker compose up -d

Check service status

Displays the status of containers (name, status, exposed ports):

docker compose ps

Displays resource consumption (CPU, memory, network, and disk I/O) for each container:

docker compose stats

Stop and clean up services

Stops services, removes containers and networks.

docker compose down

Complete cleanup

Stops services, removes containers, networks, images, volumes, and orphaned containers.

warning

This operation will delete all data stored in volumes.

docker compose down --rmi all --volumes --remove-orphans

View logs

Displays real-time logs of all services.

docker compose logs -f --tail 100

View logs of a specific service (e.g., Sync-in)

docker compose logs -f --tail 100 sync_in

Create a user

Once the Sync-in container is started, you can create new accounts directly inside the container.

Replace "user" and "password" with the credentials you want to assign.

docker compose exec -it sync_in sh -c 'node server/infrastructure/database/scripts/create-user.js --role user --login "user" --password "password"'
tip

Replace --role user with --role admin to create an administrator account.

Update Sync-in

Downloads the latest Sync-in image, recreates/restarts the container, then removes unused images.

docker compose pull sync_in && docker compose up -d && docker image prune -f