In the compose file below I created two separate services db and db Alternate as an example. Does
networks: have to be an array and
image: a value. Where do I find the specs for each one of the services e.g. db? Thanks.
version: "3.9" services: proxy: build: ./proxy networks: - frontend app: build: ./app networks: - frontend - backend db: image: postgres networks: - backend # Alternate Can these settings also work? # db: # image: # - postgres # networks: backend networks: frontend: # Use a custom driver driver: custom-driver-1 backend: # Use a custom driver which takes special options driver: custom-driver-2 driver_opts: foo: "1" bar: "2"