Makefile 362 B

1234567891011
  1. PROJECT_NAME=rsyncd
  2. build:
  3. docker-compose build
  4. run:
  5. docker-compose -p "${PROJECT_NAME}" down
  6. docker-compose -p "${PROJECT_NAME}" up -d --build
  7. docker exec -t ${PROJECT_NAME}_rsyncd_1 bash -c 'cat /etc/rsyncd.conf'
  8. # docker inspect --format='{{(index (index .NetworkSettings.Ports "873/tcp") 0).HostPort}}' ${PROJECT_NAME}_rsyncd_1
  9. docker-compose logs -f