Operations
Common Docker Compose service operations for Sync-in.
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.
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"'
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