ip: 10.10.0.1 port: 80
This specifies that caddy should use the image caddy and always restart. The volumes directory contains the dist directory as a volume, which caddy will use to store its files. Caddy will also have an nginx network, which will be used to route requests to the caddy service.
version: '3.6' services: caddy: image: caddy restart: always volumes: - ./dist:/srv networks: - nginx networks: nginx: external: name: nginx