services: mail: image: nginx restart: always ports: - 2380:80 volumes: - /path/to/root/default.conf:/etc/nginx/conf.d/default.conf - /path/to/root/public:/data/www/