version: '2'
services:
  web:
    build: web
    command: bundle exec rails s -p 3000 -b '0.0.0.0'
    volumes:
      - ./web:/app
    ports:
      - "3000:3000"
    links:
      - db
    environment:
      - POSTGRES_HOST=postgres://db/asicsaccess
    env_file: ./web/.env

  mywebsql:
    image: quantumobject/docker-mywebsql
    ports:
      - "4000:80"
    links:
      - db
    environment:
      - POSTGRES_HOST=postgres://db/asicsaccess

  db:
    image: postgres

  nginx:
    build: nginx
    links:
      - web
    ports:
      - "8080:80"
      - "80:80"

version: '2'
services:
  web:
    build: web
    command: bundle exec rails s -p 3000 -b '0.0.0.0'
    volumes:
      - ./web:/app
    ports:
      - "3000:3000"
    links:
      - db
    environment:
      - POSTGRES_HOST=postgres://db/asicsaccess
    env_file: ./web/.env

  mywebsql:
    image: quantumobject/docker-mywebsql
    ports:
      - "2052:80"
    links:
      - db
    environment:
      - POSTGRES_HOST=postgres://db/asicsaccess

  db:
    image: postgres

  nginx:
    build: nginx
    links:
      - web
    ports:
      - "8080:80"
      - "80:80"

Change mywebsql port to 2052
Change mywebsql port to 2052
