services: app: restart: unless-stopped # domainname: www.example.xyz # uncomment if you want to use your own domain build: context: ./app dockerfile: Dockerfile ports: - target: 3000 mode: ingress published: 3000 healthcheck: test: wget -q --spider http://localhost:3000/ || exit 1 deploy: resources: reservations: cpus: "0.25" memory: 256M