name: my-awesome-compose services: nginx: # TODO no latest?? image: nginx:latest ports: - 80:80 volumes: - ${DATA:?error}/nginx/www/:/usr/share/nginx/html:ro ### services ### # image: # build: # ports: # depends_on: # - ... # ... # | # ...: # condition: service_healthy # domainname: ... # env_file: ... # environment: ... # expose: # - ... # ... # external-links: # - ... # ... # healthcheck: # Dockerfile # hostname: ... # labels: # - ... # ... # label_file: ... # restart: on-failure:3 / always # secrets: # - ... # ... # volumes: {out}:{in}:{rw|ro} # networks: ??? ### networks (list of networks) ### # (services are connected to the network "default" by default) # (see https://docs.docker.com/compose/how-tos/networking/) ### volumes (list of volumes) ### # (there's nothing useful???) ### configs ### # ??? ### secrets ### # ??? see configs before ###