version: "3.1"

secrets:
  aws_access_key:
    external: true
  aws_secret_access_key:
    external: true

services:
  web:
    image: ezmiller/datemo-nginx-proxy:latest
    ports:
      - "80:80"

  datemo:
    image: ezmiller/datemo:latest
    environment:
      - DATOMIC_CLOUD_STACK_NAME=datemo
    depends_on:
      - web
      - datomic-socks-proxy
    ports:
      - "8080:8080"
    secrets:
      - aws_access_key
      - aws_secret_access_key


version: "3.2"

secrets:
  aws_access_key:
    external: true
  aws_secret_access_key:
    external: true

services:
  web:
    image: ezmiller/datemo-nginx-proxy:latest
    ports:
      - mode: host
        target: 80
        published: 80

  datemo:
    image: ezmiller/datemo:latest
    environment:
      - DATOMIC_CLOUD_STACK_NAME=datemo
    depends_on:
      - web
      - datomic-socks-proxy
    ports:
      - "8080:8080"
    secrets:
      - aws_access_key
      - aws_secret_access_key


Fix web port not open on swarm
Fix web port not open on swarm

Need to specify mode = host. New docker-compose 3.2 syntax for doing this.
