There is no compulsory vaccination in Germany. But You are strongly advised to follow the vaccination recommendations. There are plans for a compulsory vaccination concerning measles.