how can I configure the server on AWS?

How about (while standing in the repo folder):

IMAGE_VERSION=$(cat .version) docker-compose -p ${INSTANCE_NAME} up

Replace ${INSTANCE_NAME} with the value you set in local.properties.