How to build an image for rasa actions in docker compose file

Hello,

I am using rasa 1.1.8 version. I want to use docker compose for rasa server and rasa action server. How can I use action server for custom actions in docker compose file. I am trying with below docker-compose.yml file but action server is not running with docker-compose up -d command .

docker-compose.yml file:

version: '3'
services:
  rasa:
    image: api:latest
    build:
      context: .
    volumes:
      - ./data:/api
    ports:
      - "5005:5005"
    command: python3 -m rasa run  --enable-api
  action:  
    image: apiactions
    build:
      context: ./actions
    volumes: 
     - ./actions:/api/actions
    ports:
      - "5055:5055"
    command : python -m rasa run actions  

thanks in advance!