Here are some "hacks" to help your body sleep better when you're working an unusual shift. First, try to keep the same schedule even on your days off, to minimize disruptions. Always try to block out seven to nine hours of sleep a day.
Try to eat something before you go to bed, so your unusual schedule doesn't lead to hunger that wakes you up. Avoid caffeine or drinks with alcohol close to bedtime, since these can make your sleep less restful. Try natural supplements like melatonin to help shift your body's sleep cycle.
Use blackout curtains, white noise machines, fans, and ear plugs to keep the sights and sounds of daytime at bay. All that activity can disrupt your sleep. If you still have trouble falling asleep, try a sleep podcast and sleep headphones so you can rest more comfortably.
Your lighting can also make a huge difference. Stay away from bright screens an hour or two before bed. And invest in a specialized alarm that uses a colorful light to simulate the sunrise and sunset. This can help your body feel like you're on a regular schedule (especially if coupled with blackout curtains) and ease you into waking up naturally. These alarms even come with nature noises, like chirping birds and crickets, to enhance the simulation.