name: my-awesome-compose services: nginx: # TODO(any)(latest) no latest?? build: ./requirements/nginx/ ports: - 4433:443 depends_on: - wordpress volumes: - www:/www:ro # domainname: mcolonna.42.fr # TODO(vm) useful? # TODO(any)(nocopy) wordpress: build: ./requirements/wordpress volumes: - www:/www:rw volumes: www: driver: local driver_opts: o: bind type: none device: "${INCEPTION_WWW_PATH:?error}" ### 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 ###